添加微信登录

This commit is contained in:
yige committed 2020-07-23 08:35:25 +08:00
1 parent f4da5d9455
commit dd89e298b9
1 file changed
+6 -1
+6 -1
View File
@@ -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
}