From 3dc1faf896f94703d5f810b4ac98fdbe85fad5ed Mon Sep 17 00:00:00 2001 From: Double-_-Z <2492419643@qq.com> Date: Mon, 30 Jun 2025 12:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=90=86=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 1 - vite.config.ts | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.env.production b/.env.production index 2dc0a39..1ba4a2a 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,4 @@ ENV = production # 线上环境接口地址 -# VITE_API_URL = http://8.138.175.106/ VITE_API_URL = http://8.138.171.103/ \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 9f83cd2..91a006a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,8 +16,8 @@ const alias: Record = { }; // 请求映射后端路径 -// const url:string = 'http://8.138.171.103'; -const url:string = 'http://localhost:8081'; +const url:string = 'http://8.138.171.103'; +// const url:string = 'http://localhost:8081'; const viteConfig = defineConfig((mode: ConfigEnv) => { const env = loadEnv(mode.mode, process.cwd()); @@ -39,7 +39,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { ws: true, secure: false, changeOrigin: true, - rewrite: (path) => path.replace(/^\/aerocraftAdminApi/, ''), + // rewrite: (path) => path.replace(/^\/aerocraftAdminApi/, ''), }, '/upload': { target: url,