From dda0e6f581e8c2b116f2eae53756d80215d6e5e0 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期三, 01 二月 2023 09:31:37 +0800
Subject: [PATCH] 1

---
 src/components/navMenu.vue |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/src/components/navMenu.vue b/src/components/navMenu.vue
index 0132bc6..458c344 100644
--- a/src/components/navMenu.vue
+++ b/src/components/navMenu.vue
@@ -186,11 +186,10 @@
       }
     },
     setLiClick(res, index) {
-
       setTimeout(() => {
         this.changeliSelect = res.cnName;
         if (res.url.indexOf('http') != -1) {
-          if (this.$store.reporturl == null) {
+          if (location.href.indexOf('/WareInspection') == -1) {
             this.$store.reporturl = res.url;
             this.$router.push('/WareInspection');
           } else {
@@ -221,10 +220,10 @@
 
           that.setMenuTree(menuLists);
         } else {
-             this.$message({
-              message: '鏆傛棤鑿滃崟鏍忔暟鎹�',
-              type: 'warning'
-            });
+          this.$message({
+            message: '鏆傛棤鑿滃崟鏍忔暟鎹�',
+            type: 'warning'
+          });
         }
       }
     },
@@ -266,10 +265,10 @@
           return father.pid == 1; // 杩斿洖涓�绾ц彍鍗�
         });
       } else {
-          this.$message({
-              message: '鏆傛棤鑿滃崟鏍忔暟鎹�',
-              type: 'warning'
-            });
+        this.$message({
+          message: '鏆傛棤鑿滃崟鏍忔暟鎹�',
+          type: 'warning'
+        });
       }
     },
     logOut() {

--
Gitblit v1.9.3