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