update url
This commit is contained in:
parent
41fbb0373f
commit
7ce142ffd1
|
|
@ -2,4 +2,4 @@
|
|||
ENV = development
|
||||
|
||||
# 本地环境接口地址
|
||||
VITE_API_URL = http://101.35.149.39:8000
|
||||
VITE_API_URL = /api
|
||||
|
|
@ -2,4 +2,4 @@
|
|||
ENV = production
|
||||
|
||||
# 线上环境接口地址
|
||||
VITE_API_URL = https://nx.smartjinrui.cn/api
|
||||
VITE_API_URL = /api
|
||||
|
|
@ -29,10 +29,10 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
|
|||
hmr: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://200.1.1.32:8000',
|
||||
target: 'https://fucai-admin.smartjinrui.cn/api/',
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
rewrite: (path) => path.replace(/^\/api/, '/'),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue