From dd89e298b97219c0deb0c37b7b5729aa033509cd Mon Sep 17 00:00:00 2001 From: yige Date: Thu, 23 Jul 2020 08:35:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BE=AE=E4=BF=A1=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/auth.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/auth.vue b/pages/auth.vue index 522438a..bbae48c 100644 --- a/pages/auth.vue +++ b/pages/auth.vue @@ -28,9 +28,14 @@ export default { duration: 5000 }) return + } else { + try { + window.localStorage.visitorToken = data.result.token + window.localStorage.visitorInfo = JSON.stringify(data.result.visitorInfo) + window.location.href = 'https://www.wyr.me/post/' + this.$route.query.state.split('-')[1] + } catch (_) { } } - window.authSuccess(data) return }