url 参数
This commit is contained in:
@ -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('请先登录')
|
||||
}
|
||||
|
||||
@ -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/'
|
||||
|
||||
Reference in New Issue
Block a user