From a253ac4e7e7dcd0277fba9b04015d3e0fe3afba9 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Thu, 30 Nov 2023 18:38:01 +0800
Subject: [PATCH] 通知新增实时提醒

---
 src/page/index/top/top-notice.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/page/index/top/top-notice.vue b/src/page/index/top/top-notice.vue
index 107ba22..1fb2476 100644
--- a/src/page/index/top/top-notice.vue
+++ b/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
         }
       })
 

--
Gitblit v1.9.3