From c439e66fa2814acc5b31258caf95845032105a7b Mon Sep 17 00:00:00 2001 From: fxjhello <2395112364@qq.com> Date: Mon, 22 May 2023 11:59:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BB=A3=E7=90=86=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/vite.config.ts b/views/vite.config.ts index af9e9904..796872f0 100644 --- a/views/vite.config.ts +++ b/views/vite.config.ts @@ -37,7 +37,7 @@ export default defineConfig((env) => { open: false, proxy: { '/api': { - target: 'http://146.56.190.29:7861', + target: 'http://127.0.0.1:7861', changeOrigin: true, // 允许跨域 rewrite: path => path.replace('/api/', ''), },