From f79ebb7dc06cf94667d512af41c2cc61f99c2493 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期一, 27 二月 2023 18:44:32 +0800
Subject: [PATCH] 项目管理数据库管理新增

---
 src/components/navMenu.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/components/navMenu.vue b/src/components/navMenu.vue
index 1cec320..d8a7ab3 100644
--- a/src/components/navMenu.vue
+++ b/src/components/navMenu.vue
@@ -216,7 +216,8 @@
     },
     //榧犳爣绉诲叆鑿滃崟浜嬩欢
     setMenuMove(index, item) {
-      if (item.perms != null) {
+
+      if (item.perms != null && item.perms != "") {
         this.$router.push(item.url);
         if (this.showFlag != null) {
 
@@ -317,16 +318,19 @@
       for (var i in res) {
         res[i].checkClass = res[i].css + '1';
         res[i].show = false; //鎺у埗鏄鹃殣
-        if (res[i].perms == null) {
+
+        if (res[i].perms == null || res[i].perms == "") {
           const result = await selectMenuRecursive({ id: res[i].id });
 
           if (result.code == 200) {
+
             res[i].children = result.result.filter((value) => {
               return value.isShow == 1;
             })
               .filter((value) => {
                 return value.pid == res[i].id;
               });
+
           }
           this.listMenu.push(res[i]);
           // this.changeSelectStyle = this.listMenu.length - 1;

--
Gitblit v1.9.3