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

bug fixes

上级 af69206e
...@@ -187,8 +187,9 @@ export default { ...@@ -187,8 +187,9 @@ export default {
}, },
beforeMount() { beforeMount() {
this.$store.dispatch('checkLogin').then(isLogin => { this.$store.dispatch('checkLogin').then(isLogin => {
if (isLogin) { const TGC = Cookies.get('TGC')
this.loginSuccess({ code: 0, data: { TGC: Cookies.get('TGC') } }, 1) if (isLogin && TGC) {
this.loginSuccess({ code: 0, data: { TGC } }, 1)
} else { } else {
if (this.isWechat) { if (this.isWechat) {
if (!this.checkWechatLogin()) { if (!this.checkWechatLogin()) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论