mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-26 09:04:31 +08:00
refactor: 显示消息详情
This commit is contained in:
@@ -6,7 +6,7 @@ import { SvgMessageUrl } from '@vben/icons';
|
|||||||
import { $t } from '@vben/locales';
|
import { $t } from '@vben/locales';
|
||||||
import { useUserStore } from '@vben/stores';
|
import { useUserStore } from '@vben/stores';
|
||||||
|
|
||||||
import { notification } from 'ant-design-vue';
|
import { Modal, notification } from 'ant-design-vue';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
|
|
||||||
@@ -90,6 +90,11 @@ export const useNotifyStore = defineStore(
|
|||||||
*/
|
*/
|
||||||
function setRead(item: NotificationItem) {
|
function setRead(item: NotificationItem) {
|
||||||
!item.isRead && (item.isRead = true);
|
!item.isRead && (item.isRead = true);
|
||||||
|
// 显示信息
|
||||||
|
Modal.info({
|
||||||
|
title: item.title,
|
||||||
|
content: item.message,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user