客户超额消息通知

This commit is contained in:
wuweihua
2026-10-09 17:06:40 +08:00
parent 94e7a18e0b
commit 037d4b7cdf
20 changed files with 2065 additions and 7 deletions
@@ -42,6 +42,11 @@
<router-link to="/user/profile">
<el-dropdown-item>个人中心</el-dropdown-item>
</router-link>
<el-dropdown-item command="myNotify">
<el-badge :value="notifyState.unreadCount" :hidden="!notifyState.unreadCount" :max="99" type="danger">
<span>我的通知</span>
</el-badge>
</el-dropdown-item>
<el-dropdown-item command="setLayout" v-if="settingsStore.showSettings">
<span>布局设置</span>
</el-dropdown-item>
@@ -72,6 +77,7 @@ import useAppStore from '@/store/modules/app'
import useUserStore from '@/store/modules/user'
import useLockStore from '@/store/modules/lock'
import useSettingsStore from '@/store/modules/settings'
import { notifyState } from '@/components/NotifyPopup/notifyState'
// import HeaderNotice from './HeaderNotice' // 消息通知铃铛已隐藏
const route = useRoute()
@@ -93,6 +99,9 @@ function handleCommand(command) {
case "lockScreen":
lockScreen()
break
case "myNotify":
notifyState.open && notifyState.open()
break
case "logout":
logout()
break