flat: za
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user