From 7855172b6ea7cb128807c866da5ea26be0cc3945 Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期四, 12 十月 2023 17:58:29 +0800
Subject: [PATCH] 代码更新

---
 src/assets/js/mapMsg.js |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/src/assets/js/mapMsg.js b/src/assets/js/mapMsg.js
index b8e2beb..c71bcf1 100644
--- a/src/assets/js/mapMsg.js
+++ b/src/assets/js/mapMsg.js
@@ -17,7 +17,7 @@
         var that = this;
         window.addEventListener("message", res => {
             if (this.setTimeInterval) {
-                clearInterval(this.setTimeInterval);
+                 clearInterval(this.setTimeInterval);
                 this.setTimeInterval = null;
 
             }
@@ -40,6 +40,8 @@
         var rest = mapData.msgMach.rest;
         var rom = mapData.msgMach.lineRoam;
         var closeRomData = mapData.msgMach.closeRoam;
+        var acceptData =mapData.msgMach.acceptMsg;
+        console.log(result)
         var valRest = rest.filter((rs) => {
             if (param.indexOf(rs) > -1) {
                 return rs;
@@ -77,8 +79,23 @@
             rpc.setCloseLineRomaing();
             return
         }
+        var accept = acceptData.filter(res => {
+            if (param.indexOf(res) > -1) {
+                return res;
+            }
+        })
+        if (accept.length > 0) {
+            rpc.getFuzzyQuery(result)
+        }
+        
+        
+        // else{
+        //     vueEvents.$emit("queryData", false);
+        //     rpc.setClearAllMsg();
+        //     rpc.setMapRest();
+        // }
 
-        rpc.getFuzzyQuery(result)
+
 
     },
 };

--
Gitblit v1.9.3