From 8b09926cc6ec819d9ea7722728f23d57e7ec2818 Mon Sep 17 00:00:00 2001 From: tangtaoit Date: Tue, 19 Sep 2023 18:19:17 +0800 Subject: [PATCH] fix: update url --- src/config/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/config/index.ts b/src/config/index.ts index b84e4b7..1b71d5f 100755 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -19,11 +19,13 @@ Object.keys(moduleFiles).forEach(name => { modules[key] = moduleFiles[name]; }); + const TSDD_CONFIG = window.TSDD_CONFIG ? window.TSDD_CONFIG : {}; // 默认应用配置 export const BU_DOU_CONFIG = { APP_TITLE: '唐僧叨叨后台管理', - APP_TITLE_SHORT: '唐僧', - // APP_URL: 'https://api.botgate.cn/v1/' - APP_URL: '/api/v1/' // 正式环境地址 (通用打包镜像,用此相对地址) -}; + APP_TITLE_SHORT: '唐', + ...modules[process.env.APP_ENV as any], + ...TSDD_CONFIG + // APP_URL: '/api/v1/' // 正式环境地址 (通用打包镜像,用此相对地址) +}; \ No newline at end of file