From 12a2f18a968c29b3502a50c4f0a9f49c27c9f3f6 Mon Sep 17 00:00:00 2001 From: jazz <jazzxhunter@163.com> Date: 星期三, 03 一月 2024 19:10:25 +0800 Subject: [PATCH] update_202401031910_单个治疗室多个客人的逻辑编写v2 --- src/config/index.js | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/config/index.js b/src/config/index.js index 5a01f9b..91e711d 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -25,7 +25,6 @@ if (is_use_test_server) { isTestView = 1 } - } const pdomain = '/' // 绾夸笂 @@ -50,8 +49,8 @@ const search = location.search // 鍙傛暟鏁扮粍 let querys = [] - if (search && search.indexOf('?')>-1) { - querys = search.split('?')[1].split('&').filter((str)=>{ + if (search && search.indexOf('?') > -1) { + querys = search.split('?')[1].split('&').filter((str) => { const key = str.split('=')[0] const value = str.split('=')[1] return (key != 'code' && key != 'state') @@ -62,7 +61,7 @@ // 琛ュ厖鍙傛暟 if (querys.length) { - indexUrl += '?'+querys.join('&') + indexUrl += '?' + querys.join('&') } return long.replace('{{appid}}', appid).replace('{{scope}}', scope).replace('{{url}}', encodeURIComponent(indexUrl)) @@ -73,7 +72,7 @@ console.log = () => {} } -var domain; +var domain if (istest == 0) domain = pdomain // 绾夸笂 if (istest == 1) domain = tdomain // 鏈湴 -- Gitblit v1.8.0