diff --git a/.vuepress/public/chat/index.html b/.vuepress/public/chat/index.html index ef108f3..e465f76 100644 --- a/.vuepress/public/chat/index.html +++ b/.vuepress/public/chat/index.html @@ -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 技术支持' } diff --git a/.vuepress/theme/components/OnlineChatLogin.vue b/.vuepress/theme/components/OnlineChatLogin.vue index eb3df5d..8a05886 100644 --- a/.vuepress/theme/components/OnlineChatLogin.vue +++ b/.vuepress/theme/components/OnlineChatLogin.vue @@ -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/'