From 1bb86ef997540e90957c263f386ecc8c9b2530ec Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 18 Oct 2023 09:42:22 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=BC=80=E5=8F=91=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- vite.config.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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, ''), }, }, },