From f1a4a2e83a5a3a3f8636c0d85a3a02471c5b07e7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 05 三月 2025 15:39:52 +0800 Subject: [PATCH] Merge branch 'positec' into dms --- src/index.js | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/index.js b/src/index.js index 3e60879..c9d0634 100644 --- a/src/index.js +++ b/src/index.js @@ -137,6 +137,10 @@ GLOB.mainSystemApi = 'https://cloud.positecgroup.com/webapi/dostars' + if (config.style_appkey) { + GLOB.style_appkey = config.style_appkey + } + // GLOB.mainSystemApi = 'https://sso.mk9h.cn/cloud/webapi/dostars' // if (!/^https/.test(window.location.protocol)) { // https杞崲 // GLOB.mainSystemApi = 'http://sso.mk9h.cn/cloud/webapi/dostars' @@ -179,6 +183,10 @@ GLOB.mainSystemApi = systemApi } + + if (config.errorLog === 'true' && /#\/(login|main|billprint|docprint|tab|iframe|view|ssologin)/.test(window.location.href)) { + GLOB.errorLog = true + } } if (/#\/hs$/.test(window.location.href)) { // hs涓嬩笉鎵撳嵃鑴氭湰 @@ -204,6 +212,7 @@ GLOB.host = window.location.host + (_service ? '_' + _service : '') GLOB.baseurl = document.location.origin + '/' + GLOB.service GLOB.linkurl = GLOB.baseurl + 'index.html' + GLOB.location = document.location.origin } else { GLOB.location = config.host GLOB.service = config.service -- Gitblit v1.8.0