From 5225cd4809e6ee55dbba037be574b4bebfa133d3 Mon Sep 17 00:00:00 2001 From: horizons <1490493387@qq.com> Date: Mon, 24 Oct 2022 23:20:29 +0800 Subject: [PATCH] =?UTF-8?q?chore(vite.config.ts):=20=E7=BA=BF=E4=B8=8A?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=9C=B0=E5=9D=80=E8=B7=AF=E5=BE=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 7f10b6348036279f2b43d681083d3fe6a73b5ff9 --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 89ba119f..29bd03d8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -25,7 +25,7 @@ export default ({ mode }: ConfigEnv): UserConfig => { open: true, // 运行自动打开浏览器 proxy: { [env.VITE_APP_BASE_API]: { - target: 'http://localhost:8989', + target: 'http://sapi.youlai.tech', changeOrigin: true, rewrite: path => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')