From 13a0db0180b11d3006526467f0420b71b330ba54 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Thu, 17 Nov 2022 14:59:36 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=A0=E9=99=A4=E5=B7=B2=E5=BA=9F?= =?UTF-8?q?=E5=BC=83=E7=9A=84=20`$baseUrl=20`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/config/index.ts b/src/config/index.ts index 836501858..2fe1e80e2 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -31,7 +31,6 @@ const getConfig = (key?: string): ServerConfigs => { export const getServerConfig = async (app: App): Promise => { app.config.globalProperties.$config = getConfig(); return axios({ - baseURL: "", method: "get", url: `${VITE_PUBLIC_PATH}serverConfig.json` }) @@ -44,8 +43,6 @@ export const getServerConfig = async (app: App): Promise => { // 设置全局配置 setConfig($config); } - // 设置全局baseURL - app.config.globalProperties.$baseUrl = $config.baseURL; return $config; }) .catch(() => {