This commit is contained in:
gyq
2024-05-31 09:50:08 +08:00
parent a5e04e3f97
commit 4e954e42d5
2 changed files with 10 additions and 6 deletions

View File

@@ -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'
# 阿伟
# 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'

View File

@@ -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/, ""),
},