From 24bba05db141f358bf1a8bb7213a2432c9de355e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 08 十月 2021 19:14:22 +0800 Subject: [PATCH] 2021-10-08 --- src/index.js | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 49328bb..3f455ef 100644 --- a/src/index.js +++ b/src/index.js @@ -110,9 +110,15 @@ if (config.mainSystemApi) { let systemApi = config.mainSystemApi // 涓氬姟绯荤粺涓嶅厑璁歌繛鎺ヤ簯绔紝涓氬姟绯荤粺杩炴帴sso.mk9h.cn鏃讹紝鏁版嵁铏氬寲澶勭悊 - if (systemApi && systemApi.indexOf('cloud.mk9h.cn') > -1) { + if (systemApi.indexOf('cloud.mk9h.cn') > -1) { systemApi = '' - } else if (systemApi && systemApi.indexOf('sso.mk9h.cn') > -1 && process.env.NODE_ENV === 'production') { + } else if (/index.html/ig.test(systemApi)) { + systemApi = systemApi.replace(/index.html.*/ig, 'webapi/dostars') + } else if (!/webapi\/dostars$/ig.test(systemApi)) { + systemApi = systemApi.replace(/\/?$/, '/webapi/dostars') + } + + if (systemApi.indexOf('sso.mk9h.cn') > -1 && process.env.NODE_ENV === 'production') { GLOB.dataFormat = true } -- Gitblit v1.8.0