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