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

bug fixes

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