From 98121f090c38cc589de86ff6844ac3a3de423185 Mon Sep 17 00:00:00 2001 From: Cold <16419454+cold502@user.noreply.gitee.com> Date: Tue, 30 Dec 2025 16:15:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAPI=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=9Alocalhost=E6=94=B9=E4=B8=BA192.168.3?= =?UTF-8?q?.200=E6=9C=8D=E5=8A=A1=E5=99=A8IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- vite.config.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index d84cc4f..9c78a78 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,6 @@ ENV = 'development' # 本地环境接口地址 -# VITE_API_URL = 'http://192.168.3.200:8808/' -VITE_API_URL = 'http://localhost:8808/' +VITE_API_URL = 'http://192.168.3.200:8808/' +# VITE_API_URL = 'http://localhost:8808/' diff --git a/vite.config.ts b/vite.config.ts index 31aa72e..d0e1038 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -54,8 +54,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { // }, proxy: { '/api': { - // target: 'http://192.168.3.200:8808', - target: 'http://localhost:8808', + target: 'http://192.168.3.200:8808', changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, '/api'), },