| src/page/index/top/top-notice.vue | ●●●●● patch | view | raw | blame | history |
src/page/index/top/top-notice.vue
@@ -91,14 +91,15 @@ var values = { viewType: 2 } var that = this; // 获取通知数量 getList(1, 10, values).then((res) => { const data = res.data.data; this.total = data.total; if (this.total > 0) { this.view = true that.total = data.total; if (that.total > 0) { that.view = true } else { this.view = false that.view = false } })