From 2456cedc82e8f0b9a222f7d4f2699055de7c205d Mon Sep 17 00:00:00 2001 From: Shao Huan Qing Date: Thu, 3 Jun 2021 21:36:43 +0800 Subject: [PATCH] =?UTF-8?q?URL=20=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vuepress/public/chat/index.html | 6 +++++- .vuepress/theme/components/OnlineChatLogin.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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/'