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

bug fixes

上级 8aacb6d1
...@@ -125,12 +125,15 @@ export default { ...@@ -125,12 +125,15 @@ export default {
this.$toast(response.msg) this.$toast(response.msg)
} }
}, },
bindVisitor(call) { bindVisitor(callback) {
window.localStorage.userId const userId = window.localStorage.userId
? api.bindVisitor({ user_id: window.localStorage.userId }).then(res => { if (userId) {
call() api.bindVisitor({ user_id: userId }).then(res => {
}) callback()
: call() })
} else {
callback()
}
}, },
wechatLogin() { wechatLogin() {
const appId = 'wxc6044475caf2805a' const appId = 'wxc6044475caf2805a'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论