Sfoglia il codice sorgente

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

yangfeng 1 anno fa
parent
commit
7e36ab8a7f

+ 2 - 0
packages/work-bench-frame/packages/components/Navbar/index.vue

@@ -234,10 +234,12 @@ export default {
     async getMessageInfo () {
       await this.getMessages()
       this.navs.find(v => v.label === '消息中心').badge = this.messageCount  > 99 ? '99+' : this.messageCount
+      this.navs.find(v => v.label === '待办').badge = this.todoCount  > 99 ? '99+' : this.todoCount
       /**
        * 对外提供未读消息条数更新事件
        */
       this.$BRACE.$emit('update-message-count', this.messageCount)
+      this.$BRACE.$emit('update-todo-count', this.todoCount)
     },
     /**
      * 点击退出登录