浏览代码

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

yangfeng 1 年之前
父节点
当前提交
7e36ab8a7f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/work-bench-frame/packages/components/Navbar/index.vue

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

@@ -234,10 +234,12 @@ export default {
     async getMessageInfo () {
     async getMessageInfo () {
       await this.getMessages()
       await this.getMessages()
       this.navs.find(v => v.label === '消息中心').badge = this.messageCount  > 99 ? '99+' : this.messageCount
       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-message-count', this.messageCount)
+      this.$BRACE.$emit('update-todo-count', this.todoCount)
     },
     },
     /**
     /**
      * 点击退出登录
      * 点击退出登录