window.location
This commit is contained in:
@ -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'
|
||||
}
|
||||
|
||||
@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user