This commit is contained in:
Apcallover
2024-03-20 15:22:17 +08:00
parent 7829cf6b19
commit 188e475ca6
3 changed files with 6 additions and 4 deletions

View File

@@ -54,10 +54,9 @@ import { mapGetters } from "vuex";
import topLang from "@/page/index/top/top-lang";
// import { info } from "@/api/system/tenant";
import { getCaptcha } from "@/api/user";
if(location.href.indexOf('?') !== -1) {
if (/(\/login\b)(\?.*)(\&.*)/ig.test(location.href)) {
const obj = {}
const query = location.href.split('?')[1].replace(/\?/, '').split('&')
const query = location.href.split('?')[1].replace(/\?/, '').split('&')
query.forEach((item) => { const a = item.split('='); obj[a[0]] = a[1]})
window.sessionStorage.setItem('query_session', JSON.stringify(obj))
} else {