window.location

This commit is contained in:
Shao Huan Qing
2021-06-02 21:06:35 +08:00
parent d3d7aa5795
commit 09bd3f8199
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import Cookies from 'js-cookie'
let TOKEN_KEY = 'kb-user-center-token'
let domain = location.hostname
let domain = window.location.hostname
if (domain.indexOf('kuboard.cn') >= 0) {
domain = 'kuboard.cn'
}

View File

@ -36,10 +36,10 @@ export default {
props: {
},
data() {
console.log(location.search, 'search')
console.log(window.location.search, 'search')
return {
showLogout: false,
isdebugging: location.search === '?showLogin=true'
isdebugging: window.location.search === '?showLogin=true'
}
},
computed: {