fix:登陆死循环

This commit is contained in:
2022-07-16 18:40:40 +08:00
parent 88960372f5
commit ffb9c8f161
3 changed files with 6 additions and 5 deletions

View File

@@ -102,9 +102,11 @@ function Base64() {
}
}
function getParam(name){
return getParam(name,window.location.href)
let url=window.location.href;
return getParamToUrl(name,url)
}
function getParam(name,url){
function getParamToUrl(name,url){
console.log(url)
let results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(url);
if (results == null) {
return null;