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

bug fixes

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