优化
This commit is contained in:
@@ -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'
|
||||
@@ -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/, ""),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user