This commit is contained in:
2026-02-27 19:17:10 +08:00
parent 4780e15ffa
commit 13fa7ac04c
3 changed files with 25 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ export const useNoticeStore = defineStore('notice', () => {
try {
const res = await getActiveNotices()
console.log('[NoticeStore] 获取公告', res)
notices.value = Array.isArray(res) ? res : []
notices.value = Array.isArray(res) ? res.filter(n => !n.deleted) : []
lastFetchTime.value = Date.now()
} catch (error) {
console.error('[NoticeStore] 获取公告失败:', error)