From 4ba5ea2db200a8285002c767c31f525bb4884729 Mon Sep 17 00:00:00 2001 From: hooray <304327508@qq.com> Date: Mon, 6 Mar 2023 16:27:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20axios=20baseURL=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E8=A7=A3=E5=86=B3=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=90=8E=20baseURL=20=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index 2db4355d..c4377b5b 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -16,7 +16,7 @@ const toLogin = () => { } const api = axios.create({ - baseURL: import.meta.env.DEV && (import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL), + baseURL: (import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true') ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL, timeout: 1000 * 60, responseType: 'json', })