消息设置
This commit is contained in:
@ -5,22 +5,13 @@ interface NoticeItem {
|
||||
read: boolean;
|
||||
message: any;
|
||||
time: string;
|
||||
formPath?: string;
|
||||
businessId?: string;
|
||||
route?: string;
|
||||
detailId?: string;
|
||||
}
|
||||
|
||||
export const useNoticeStore = defineStore('notice', () => {
|
||||
const state = reactive({
|
||||
notices: [
|
||||
{
|
||||
title: '通知公告',
|
||||
read: false,
|
||||
message: '这是一条通知公告',
|
||||
time: '2023-01-01',
|
||||
formPath: 'design-management/scheme/indexEdit',
|
||||
businessId: '1955636050617094146'
|
||||
}
|
||||
] as NoticeItem[]
|
||||
notices: [] as NoticeItem[]
|
||||
});
|
||||
|
||||
const addNotice = (notice: NoticeItem) => {
|
||||
|
Reference in New Issue
Block a user