From 8db70ea674dc3e809427983edd5918447182c1d9 Mon Sep 17 00:00:00 2001 From: coolxitech Date: Mon, 22 Dec 2025 22:02:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(types):=20=E4=BF=AE=E5=A4=8D=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=A3=80=E6=9F=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加类型断言以解决类型不匹配问题 - 确保 typeKey 正确映射到 settings.types 的键类型 --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {