docs: 开发配置
This commit is contained in:
@@ -11,7 +11,7 @@ VITE_APP_NAME = "核心网管理系统"
|
|||||||
VITE_APP_CODE = "CoreNet"
|
VITE_APP_CODE = "CoreNet"
|
||||||
|
|
||||||
# 应用版本
|
# 应用版本
|
||||||
VITE_APP_VERSION = "1.23.1016"
|
VITE_APP_VERSION = "1.23.1018"
|
||||||
|
|
||||||
# 接口基础URL地址-不带/后缀
|
# 接口基础URL地址-不带/后缀
|
||||||
VITE_API_BASE_URL = "/omc-api"
|
VITE_API_BASE_URL = "/omc-api"
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ export default defineConfig(({ mode }) => {
|
|||||||
proxy: {
|
proxy: {
|
||||||
// https://cn.vitejs.dev/config/#server-proxy
|
// https://cn.vitejs.dev/config/#server-proxy
|
||||||
[env.VITE_API_BASE_URL]: {
|
[env.VITE_API_BASE_URL]: {
|
||||||
target: 'http://192.168.0.229:3186',
|
// target: 'http://192.168.0.229:3186',
|
||||||
// target: 'http://192.168.2.114:3040',
|
target: 'http://192.168.2.114:3040',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: p => p.replace(/^\/dev-api/, ''),
|
rewrite: p => p.replace(env.VITE_API_BASE_URL, ''),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user