提交 329a51a3 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 52a612b6
...@@ -149,9 +149,15 @@ export default { ...@@ -149,9 +149,15 @@ export default {
} }
}, },
created() { created() {
if (this.isWechat && !this.checkWechatLogin()) { this.$store.dispatch('checkLogin').then(isLogin => {
this.wechatLogin() if (isLogin) {
} this.loginSuccess({ code: 0 })
} else {
if (this.isWechat && !this.checkWechatLogin()) {
this.wechatLogin()
}
}
})
} }
} }
</script> </script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论