From 281a959d9a33cc90a1bec94b4483e6f40cd018b7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 31 十二月 2020 16:36:36 +0800 Subject: [PATCH] 2020-12-31 --- src/utils/utils.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index ca41324..36e8fda 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -168,7 +168,7 @@ value = value.replace(/%/ig, ' mpercent ') // 澶栬仈鏁版嵁搴撴浛鎹� if (window.GLOB.externalDatabase !== null) { - value = value.replace(/@db@/ig, `[${window.GLOB.externalDatabase}]..`) + value = value.replace(/@db@/ig, window.GLOB.externalDatabase) } // encode缂栫爜锛堜腑鏂囧瓧绗﹁秴鍑篵ase64鍔犲瘑鑼冨洿锛� value = window.btoa(window.encodeURIComponent(value)) @@ -239,7 +239,7 @@ value = value.replace(/%/ig, ' mpercent ') // 澶栬仈鏁版嵁搴撴浛鎹� if (window.GLOB.externalDatabase !== null) { - value = value.replace(/@db@/ig, `[${window.GLOB.externalDatabase}]..`) + value = value.replace(/@db@/ig, window.GLOB.externalDatabase) } let encodesql = (val) => { @@ -698,7 +698,7 @@ if (process.env.NODE_ENV === 'production') { baseurl = document.location.origin + '/' + window.GLOB.service } else { - baseurl = window.GLOB.location + window.GLOB.service + baseurl = window.GLOB.location + '/' + window.GLOB.service } let realurl = url.match(/^http/) || url.match(/^\/\//) ? url : baseurl + url -- Gitblit v1.8.0