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

bug fixes

上级 667bf3f6
......@@ -127,7 +127,9 @@ export default {
},
bindVisitor(call) {
window.localStorage.userId
? api.bindVisitor({ user_id: window.localStorage.userId }).then(res => { call() })
? api.bindVisitor({ user_id: window.localStorage.userId }).then(res => {
call()
})
: call()
},
wechatLogin() {
......@@ -168,6 +170,7 @@ export default {
this.wechatLogin()
} else {
if (this.isWeapp) {
wx.miniProgram.postMessage({ data: { token: '' } })
wx.miniProgram.navigateBack()
} else {
this.$router.replace('/')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论