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 }