From a521c1c4cbf6615b5dcb5a1f4201e030ba013244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A4=A9=E9=AA=84?= <5307576@qq.com> Date: Mon, 1 Jun 2026 17:21:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=B9=E6=88=90=E5=85=AC=E7=BD=91?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/auth.ts | 6 +----- manifest.json | 2 +- vite.config.ts | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/api/auth.ts b/api/auth.ts index 877bd2b..65920a5 100644 --- a/api/auth.ts +++ b/api/auth.ts @@ -1,8 +1,4 @@ -let apiBaseUrl = 'http://192.168.2.76:8000/api' - -// #ifdef H5 -apiBaseUrl = '/backend-api' -// #endif +const apiBaseUrl = 'http://127.0.0.1:8000/api' export const API_BASE_URL = apiBaseUrl diff --git a/manifest.json b/manifest.json index 4d1491d..bba0c34 100644 --- a/manifest.json +++ b/manifest.json @@ -72,7 +72,7 @@ "devServer" : { "proxy" : { "/backend-api" : { - "target" : "http://192.168.2.76:8000", + "target" : "http://127.0.0.1:8000", "changeOrigin" : true, "pathRewrite" : { "^/backend-api" : "/api" diff --git a/vite.config.ts b/vite.config.ts index 217d89d..29a6bdc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,7 @@ export default defineConfig({ server: { proxy: { '/backend-api': { - target: 'http://192.168.2.76:8000', + target: 'http://127.0.0.1:8000', changeOrigin: true, rewrite: path => path.replace(/^\/backend-api/, '/api') }