feat: 通知下拉菜单新增未读总数显示并优化数据权限类型

This commit is contained in:
Ray.Hao
2026-02-14 19:15:36 +08:00
parent b050824da7
commit bf418230ad
3 changed files with 19 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<template>
<el-dropdown class="notice__dropdown" trigger="click">
<div class="notice__trigger">
<el-badge v-if="list.length > 0" :value="list.length" :max="99">
<el-badge v-if="unreadTotal > 0" :value="unreadTotal" :max="99">
<div class="i-svg:bell" />
</el-badge>
@@ -78,7 +78,7 @@
<script setup lang="ts">
import { useNotice } from "./useNotice";
const { list, detail, dialogVisible, read, readAll, goMore } = useNotice();
const { list, unreadTotal, detail, dialogVisible, read, readAll, goMore } = useNotice();
</script>
<style lang="scss" scoped>