diff --git a/.env.development b/.env.development index aca7cf5..685ec9a 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,14 @@ # 本地环境 ENV = development -# 本地环境接口地址 +# 测试 # VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client' -VITE_API_URL = 'https://cashiernew.sxczgkj.cn/cashier-client' \ No newline at end of file + +# 阿伟 +# VITE_API_URL = 'http://192.168.2.96:10587/cashier-client' + +# 鹏辉 +# VITE_API_URL = 'http://192.168.2.41:10587/cashier-client' + +# 正式 +VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client' \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index b1aab91..ebdb6b2 100644 --- a/vite.config.js +++ b/vite.config.js @@ -12,10 +12,6 @@ export default defineConfig(({ command, mode }) => { proxy: { "/api": { target: env.VITE_API_URL, - // target: 'http://192.168.2.96:10587/cashier-client', // 阿伟 - // target: 'http://192.168.2.41:10587/cashier-client', // 鹏辉 - // target: "https://cashierclient.sxczgkj.cn/cashier-client", // 线上 - // target: 'https://cashier-client.sxczgkj.cn/cashier-client', // 测试 changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ""), },