This commit is contained in:
2025-08-15 21:57:59 +08:00
parent 0df7221c10
commit 4e26581af6
7 changed files with 8 additions and 7 deletions

View File

@ -16,7 +16,8 @@ export const useNoticeStore = defineStore('notice', () => {
const addNotice = (notice: NoticeItem) => {
console.log('🚀 ~ addNotice ~ notice:', notice);
state.notices.push(notice);
// 从前面录入
state.notices.unshift(notice);
};
const removeNotice = (notice: NoticeItem) => {