refactor: 显示消息详情

This commit is contained in:
dap
2025-07-10 17:30:13 +08:00
parent f4fcf2ef5f
commit 66aa0d4d12

View File

@@ -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,
});
}
/**