From 0e11d74e0e2d664d6104636a75558c31ead2448c Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期四, 01 二月 2024 15:04:41 +0800 Subject: [PATCH] 样式调整 --- src/config/index.js | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/config/index.js b/src/config/index.js index 5a01f9b..7127a51 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -13,7 +13,7 @@ var debug = isConsole var isWxLoginType = 0 // 寰俊鐧诲綍 0鏃� 1闈欓粯寰俊鐧诲綍snsapi_base 2鎵嬪姩寰俊鐧诲綍snsapi_userinfo var isTestView = 1 -var is_use_test_server = 1 // 鏄惁閮ㄧ讲鍦ㄦ祴璇曟湇鍔″櫒 +var is_use_test_server = 0 // 鏄惁閮ㄧ讲鍦ㄦ祴璇曟湇鍔″櫒 var localOnline = istest ? 0 : 1 // 鏈湴杩炵嚎涓� // 鎵撳寘鍚庣殑鐜 @@ -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