diff --git a/src/App.vue b/src/App.vue index 323ed28..c2b340f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -765,7 +765,7 @@ return } - if (!settings.types[typeKey]) return + if (!settings.types[typeKey as keyof typeof settings.types]) return // 浏览器通知 if (settings.browser && 'Notification' in window && Notification.permission === 'granted') {