添加微信登录

This commit is contained in:
yi-ge 2020-07-23 08:35:25 +08:00
parent f4da5d9455
commit dd89e298b9

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
}