Browse Source

Merge branch 'dev/v1.0.28_yf' of jianyu/web into feature/v1.0.28

yangfeng 1 year ago
parent
commit
eb2b370f07
1 changed files with 9 additions and 3 deletions
  1. 9 3
      packages/work-bench-frame/packages/components/Navbar/index.vue

+ 9 - 3
packages/work-bench-frame/packages/components/Navbar/index.vue

@@ -23,7 +23,7 @@
           <div
             class="nav-item"
             :class="nav.class"
-            v-for="(nav, index) in navs"
+            v-for="(nav, index) in computedNaves"
             :key="index"
             @click="onSelectNav(nav)"
           >
@@ -149,7 +149,8 @@ export default {
   },
   computed: {
     ...mapState('work-bench/navbar', [
-      'messageCount'
+      'messageCount',
+      'todoCount'
     ]),
     ...mapGetters('work-bench/user', [
       'hasExclusiveCustomer',
@@ -166,7 +167,12 @@ export default {
     ...mapState('customer', [
       'showCustomer',
       'customerUrl'
-    ])
+    ]),
+    computedNaves () {
+      return this.navs.filter(item => {
+        return this.todoCount ? item : item.label!== '待办'
+      })
+    }
   },
   created () {
     // 判断是否配置启用自定义用户信息模块,提供默认配置