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