From 24f0ce147c8daef39ec437d5def9d089ea5b1839 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 05 六月 2020 17:23:53 +0800 Subject: [PATCH] 2020-06-05 --- src/index.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 9b58aac..e8e335e 100644 --- a/src/index.js +++ b/src/index.js @@ -26,7 +26,7 @@ window.GLOB = window.GLOB || {} if (!(options.systemType === 'local' && window.GLOB.systemType === 'official')) { // 鍙湁涓氬姟绯荤粺鎵嶅彲浠ヨ缃负姝e紡绯荤粺 - window.GLOB.systemType = 'test' + window.GLOB.systemType = '' } if (options.systemType !== 'local') { // sso,cloud涓嶅彲璁剧疆鍗曠偣鏈嶅姟鍣ㄥ湴鍧� window.GLOB.mainSystemApi = '' @@ -94,7 +94,7 @@ } if (process.env.NODE_ENV === 'production') { // 鐢ㄤ簬鏍¢獙鏄惁瀛樺湪寮�鍙戞潈闄� - let _service = window.location.href.split('/index.html')[0].replace(new RegExp(document.location.origin + '/?', 'ig'), '') + let _service = window.location.href.replace(/\/index.html(.*)/ig, '').replace(new RegExp(document.location.origin + '/?', 'ig'), '') window.GLOB.linkurl = window.location.href.split('#')[0] window.GLOB.service = _service ? _service + '/' : '' } else { -- Gitblit v1.8.0