From ca95c1decf6a403e9d7c021570dbb750cf794251 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 23 Dec 2025 22:57:38 -0800 Subject: [PATCH] =?UTF-8?q?fix(admin-web):=20=E4=BF=AE=E5=A4=8D=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E8=A1=A8=E5=8D=95=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为 priority 和 targetType 添加正确的类型断言 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../src/app/(dashboard)/notifications/page.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/admin-web/src/app/(dashboard)/notifications/page.tsx b/frontend/admin-web/src/app/(dashboard)/notifications/page.tsx index 2176bc1b..a728bd06 100644 --- a/frontend/admin-web/src/app/(dashboard)/notifications/page.tsx +++ b/frontend/admin-web/src/app/(dashboard)/notifications/page.tsx @@ -9,6 +9,8 @@ import { notificationService, NotificationItem, NotificationType, + NotificationPriority, + TargetType, NOTIFICATION_TYPE_OPTIONS, NOTIFICATION_PRIORITY_OPTIONS, TARGET_TYPE_OPTIONS, @@ -58,8 +60,8 @@ export default function NotificationsPage() { title: '', content: '', type: 'SYSTEM' as NotificationType, - priority: 'NORMAL', - targetType: 'ALL', + priority: 'NORMAL' as NotificationPriority, + targetType: 'ALL' as TargetType, imageUrl: '', linkUrl: '', publishedAt: '', @@ -363,7 +365,7 @@ export default function NotificationsPage() { setFormData({ ...formData, targetType: e.target.value })} + onChange={(e) => setFormData({ ...formData, targetType: e.target.value as TargetType })} > {TARGET_TYPE_OPTIONS.map((opt) => (