This commit is contained in:
Shao Huan Qing
2021-06-02 21:30:29 +08:00
parent 09bd3f8199
commit 37e5a51d26
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -129,7 +129,7 @@ export default {
logout () {
this.showLogout = false
_MEIQIA('hidePanel')
localStorage.removeItem(TOKEN_KEY)
this.$logout()
}
},
}