登录后路径重置

This commit is contained in:
2022-03-10 14:39:03 +08:00
parent 5b46a4c37e
commit e7a71570ae
4 changed files with 22 additions and 4 deletions
+11
View File
@@ -16,5 +16,16 @@ export default {
return before+'?'+after+'&'+key+'='+value;
}
return before+(hasQuery ? '?': '&') + after;
},
queryStringToObj(queryString){
const string = queryString.split('&');
const obj = {};
string.forEach(str => {
const [key, value] = str.split('=');
obj[key] = value;
})
return obj;
}
}