diff --git a/.env.production b/.env.production index 22c2860d..22999294 100644 --- a/.env.production +++ b/.env.production @@ -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" diff --git a/vite.config.ts b/vite.config.ts index e2aba5b0..cf9d737b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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, ''), }, }, },