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

bug fixes

上级 f1681b7c
...@@ -56,10 +56,14 @@ export default { ...@@ -56,10 +56,14 @@ export default {
}, },
methods: { methods: {
// 检查是否关注公众号 // 检查是否关注公众号
checkFollowWechat() { async checkFollowWechat() {
api.checkFollowWechat().then(response => { if (this.hasFollow) {
return true
}
await api.checkFollowWechat().then(response => {
this.hasFollow = response.flag this.hasFollow = response.flag
this.followPopupVisible = !this.hasFollow this.followPopupVisible = !this.hasFollow
return this.hasFollow
}) })
}, },
// 获取提醒列表 // 获取提醒列表
...@@ -89,7 +93,8 @@ export default { ...@@ -89,7 +93,8 @@ export default {
this.isUpdate = false this.isUpdate = false
this.activeItem = null this.activeItem = null
}, },
onAdd() { async onAdd() {
await this.checkFollowWechat()
if (this.hasFollow) { if (this.hasFollow) {
this.popupVisible = true this.popupVisible = true
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论