From 56de33a285732b9fab6d03a42f61ee136868706a Mon Sep 17 00:00:00 2001 From: yml2213 Date: Tue, 23 Jun 2026 00:59:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AFTypeScript?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CookiePage: blob类型转换为BlobPart,移除Tag的size属性 - UsersPage: 移除Divider的orientation属性(类型不兼容) --- web/frontend/src/pages/CookiePage.tsx | 4 ++-- web/frontend/src/pages/UsersPage.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/frontend/src/pages/CookiePage.tsx b/web/frontend/src/pages/CookiePage.tsx index 2911cd0..d2e2e64 100644 --- a/web/frontend/src/pages/CookiePage.tsx +++ b/web/frontend/src/pages/CookiePage.tsx @@ -37,7 +37,7 @@ export default function CookiePage() { const handleExport = async (format: string = 'csv') => { try { const blob = await cookieApi.exportCsv(format); - const url = URL.createObjectURL(blob instanceof Blob ? blob : new Blob([blob])); + const url = URL.createObjectURL(blob instanceof Blob ? blob : new Blob([blob as any])); const a = document.createElement('a'); a.href = url; a.download = format === 'custom' ? 'cookies_custom.txt' : 'cookies.csv'; @@ -112,7 +112,7 @@ export default function CookiePage() { width: 100, align: 'center', render: (name: string | null) => - name ? {name} : 未分配, + name ? {name} : 未分配, }, { title: 'Cookie', diff --git a/web/frontend/src/pages/UsersPage.tsx b/web/frontend/src/pages/UsersPage.tsx index 6dff2a6..353926c 100644 --- a/web/frontend/src/pages/UsersPage.tsx +++ b/web/frontend/src/pages/UsersPage.tsx @@ -311,7 +311,7 @@ export default function UsersPage() { if (groupKeys.length === 0) return null; return (
- + {group.label}