消息配置
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user