增加接受刷新token,优化通知公告消息弹窗图标

This commit is contained in:
2023-11-23 16:15:58 +08:00
parent 54a76c6b4d
commit 195ebe2b73
4 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import { ElNotification, ElMessageBox } from 'element-plus'
import useSocketStore from '@/store/modules/socket'
import useUserStore from '@/store/modules/user'
import { webNotify } from '@/utils/index'
import notificationBellIcon from '@/components/Notice/bellIcon/index.vue'
export default {
onMessage(connection) {
connection.on(MsgType.M001, (data) => {
@@ -30,7 +30,7 @@ export default {
ElNotification({
title: import.meta.env.VITE_APP_TITLE,
message: `你有${data.data.unReadNotifications.length}条通知公告待查看`,
type: 'success',
icon: notificationBellIcon,
duration: 0
})
}