提交 20c95db0 authored 作者: 王鹏飞's avatar 王鹏飞

bug fxies

上级 598ad6ef
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
.then(response => { .then(response => {
const { code, msg: message } = response const { code, msg: message } = response
if (code === 0) { if (code === 0) {
this.bindVisitor(this.loginSuccess(response)) this.loginSuccess(response)
} else if (code === 1007) { } else if (code === 1007) {
// 切换绑定 // 切换绑定
this.switchBindWechat(data) this.switchBindWechat(data)
...@@ -129,8 +129,10 @@ export default { ...@@ -129,8 +129,10 @@ export default {
}) })
}, },
// 登录成功 // 登录成功
loginSuccess(response, delta = 2) { async loginSuccess(response, delta = 2) {
if (response.code === 0) { if (response.code === 0) {
// 登录成功绑定游客用户
await this.bindVisitor()
if (Cookies.get('wechat_login_no_phone_error')) { if (Cookies.get('wechat_login_no_phone_error')) {
this.$toast('已完成注册!') this.$toast('已完成注册!')
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论