fix(types): 修复类型检查错误

- 添加类型断言以解决类型不匹配问题
- 确保 typeKey 正确映射到 settings.types 的键类型
This commit is contained in:
coolxitech
2025-12-22 22:02:40 +08:00
parent 136591a3dd
commit 8db70ea674

View File

@@ -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') {