From 7366b0a279425cb6218bec8ba19774e5e8399b91 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Tue, 15 Mar 2022 14:34:37 +0800
Subject: [PATCH] +把DC拉出vue实例中,解决vue内存溢出问题

---
 src/components/mobilePopupOur/index.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/components/mobilePopupOur/index.vue b/src/components/mobilePopupOur/index.vue
index f7db975..3d1c1ed 100644
--- a/src/components/mobilePopupOur/index.vue
+++ b/src/components/mobilePopupOur/index.vue
@@ -124,6 +124,13 @@
     // console.log("请求对应街道接口", this.popupOurOpenData);
     this.getDataHeardDown();
   },
+  watch: {
+    fullscreenLoading() {
+      if (this.fullscreenLoading) {
+        this.notLine();
+      }
+    },
+  },
   methods: {
     handleClick(tab, event) {
       //头下部标签
@@ -294,7 +301,6 @@
         }
         that.tabTable[+campus - 1].child = outList;
       });
-      this.notLine();
     },
     //搜索请求
     getListSearchMethod(name) {
@@ -340,11 +346,12 @@
         that.fullscreenLoading = false;
         that.onlyData = outList;
       });
-      this.notLine();
     },
     notLine() {
+      console.log("等待关闭");
       setTimeout(() => {
         this.fullscreenLoading = false;
+        console.log("关闭dolog");
       }, 5000);
     },
   },

--
Gitblit v1.9.3