url 参数

This commit is contained in:
Shao Huan Qing
2021-06-03 20:37:36 +08:00
parent 7ebe017d18
commit 96fe5f5ed0
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@
if (!getCookie(TOKEN_KEY)) {
let target = '/support/?showLogin=true'
if (data.kuboard) {
target = '/support/?kuboard-data=' + data.kuboard
target = '/support/?kuboard=' + data.kuboard
} else {
window.alert('请先登录')
}

View File

@ -121,7 +121,7 @@ export default {
},
mounted () {
// console.log(location)
if (location.search === '?showLogin=true' || location.search.indexOf('?kuboard-data=')) {
if (location.search === '?showLogin=true' || location.search.indexOf('?kuboard=')) {
this.goStandAlone = true
this.show()
}
@ -173,7 +173,7 @@ export default {
this.loginLoading = false
console.log(this.goStandAlone)
if (this.goStandAlone && typeof window !== 'undefined') {
if (location.search.indexOf('?kuboard-data=')) {
if (location.search.indexOf('?kuboard=')) {
window.location.href = '/chat/' + location.search
} else {
window.location.href = '/chat/'