mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-11 23:45:11 +08:00
fix(types): 修复类型检查错误
- 添加类型断言以解决类型不匹配问题 - 确保 typeKey 正确映射到 settings.types 的键类型
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user