From 96fe5f5ed0ff8dad40a4fa06354a058885cff7a3 Mon Sep 17 00:00:00 2001 From: Shao Huan Qing Date: Thu, 3 Jun 2021 20:37:36 +0800 Subject: [PATCH] =?UTF-8?q?url=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vuepress/public/chat/index.html | 2 +- .vuepress/theme/components/OnlineChatLogin.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vuepress/public/chat/index.html b/.vuepress/public/chat/index.html index 8c6a254..319eb61 100644 --- a/.vuepress/public/chat/index.html +++ b/.vuepress/public/chat/index.html @@ -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('请先登录') } diff --git a/.vuepress/theme/components/OnlineChatLogin.vue b/.vuepress/theme/components/OnlineChatLogin.vue index 999e211..ed5be8d 100644 --- a/.vuepress/theme/components/OnlineChatLogin.vue +++ b/.vuepress/theme/components/OnlineChatLogin.vue @@ -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/'