URL 传参
This commit is contained in:
@ -179,7 +179,11 @@
|
||||
data.kuboard = Base64.decode(data.kuboard)
|
||||
data.kuboard = JSON.parse(data.kuboard)
|
||||
data.metadata = Object.assign(data.metadata, data.kuboard)
|
||||
data.greeting = `【${data.kuboard.K_title}】所在的链接: ` + data.kuboard.fromUrl
|
||||
if (data.kuboard.K_title.indexOf('Kuboard') < 0) {
|
||||
data.greeting = `Hi,Kuboard,我是 ${data.kuboard.K_title} 的 ${user.name},有问题想要找你帮忙看看。`
|
||||
} else {
|
||||
data.greeting = `Hi,Kuboard,我是 ${user.name},有问题想要找你帮忙看看。`
|
||||
}
|
||||
document.title = 'Kuboard 技术支持'
|
||||
}
|
||||
|
||||
|
||||
@ -173,7 +173,7 @@ export default {
|
||||
this.loginLoading = false
|
||||
console.log(this.goStandAlone)
|
||||
if (this.goStandAlone && typeof window !== 'undefined') {
|
||||
if (location.search.indexOf('?kuboard=')) {
|
||||
if (location.search.indexOf('?kuboard=') === 0) {
|
||||
window.location.href = '/chat/' + location.search
|
||||
} else {
|
||||
window.location.href = '/chat/'
|
||||
|
||||
Reference in New Issue
Block a user