docs: 开发配置

This commit is contained in:
TsMask
2023-10-18 09:42:22 +08:00
parent b92e225fd4
commit 1bb86ef997
2 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ VITE_APP_NAME = "核心网管理系统"
VITE_APP_CODE = "CoreNet"
# 应用版本
VITE_APP_VERSION = "1.23.1016"
VITE_APP_VERSION = "1.23.1018"
# 接口基础URL地址-不带/后缀
VITE_API_BASE_URL = "/omc-api"

View File

@@ -20,10 +20,10 @@ export default defineConfig(({ mode }) => {
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
[env.VITE_API_BASE_URL]: {
target: 'http://192.168.0.229:3186',
// target: 'http://192.168.2.114:3040',
// target: 'http://192.168.0.229:3186',
target: 'http://192.168.2.114:3040',
changeOrigin: true,
rewrite: p => p.replace(/^\/dev-api/, ''),
rewrite: p => p.replace(env.VITE_API_BASE_URL, ''),
},
},
},