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(() => {