|
@@ -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 () {
|
|
|
// 判断是否配置启用自定义用户信息模块,提供默认配置
|