客户超额消息通知
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user