fix(notice): keep code-based dismissal internal

This commit is contained in:
wonfen
2026-10-03 10:30:00 +08:00
parent f958dccb25
commit a58cefdc31
+1 -1
View File
@@ -526,7 +526,7 @@ export function hideNotice(id: number) {
notifySubscribers()
}
export function hideNoticesByCode(code: string) {
function hideNoticesByCode(code: string) {
notices
.filter((notice) => notice.code === code)
.forEach(({ id }) => hideNotice(id))