refactor: 显示消息详情
This commit is contained in:
parent
f4fcf2ef5f
commit
66aa0d4d12
@ -6,7 +6,7 @@ import { SvgMessageUrl } from '@vben/icons';
|
||||
import { $t } from '@vben/locales';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
|
||||
import { notification } from 'ant-design-vue';
|
||||
import { Modal, notification } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
@ -90,6 +90,11 @@ export const useNotifyStore = defineStore(
|
||||
*/
|
||||
function setRead(item: NotificationItem) {
|
||||
!item.isRead && (item.isRead = true);
|
||||
// 显示信息
|
||||
Modal.info({
|
||||
title: item.title,
|
||||
content: item.message,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user