消息配置

This commit is contained in:
Teo
2025-08-14 10:50:56 +08:00
parent f6c21bf195
commit 062fa5b080
6 changed files with 108 additions and 221 deletions

View File

@ -5,11 +5,22 @@ interface NoticeItem {
read: boolean;
message: any;
time: string;
formPath?: string;
businessId?: string;
}
export const useNoticeStore = defineStore('notice', () => {
const state = reactive({
notices: [] as NoticeItem[]
notices: [
{
title: '通知公告',
read: false,
message: '这是一条通知公告',
time: '2023-01-01',
formPath: 'design-management/scheme/indexEdit',
businessId: '1955636050617094146'
}
] as NoticeItem[]
});
const addNotice = (notice: NoticeItem) => {