修复前端TypeScript编译错误
- CookiePage: blob类型转换为BlobPart,移除Tag的size属性 - UsersPage: 移除Divider的orientation属性(类型不兼容)
This commit is contained in:
@@ -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 ? <Tag color="green" size="small">{name}</Tag> : <Text type="secondary" style={{ fontSize: 12 }}>未分配</Text>,
|
||||
name ? <Tag color="green">{name}</Tag> : <Text type="secondary" style={{ fontSize: 12 }}>未分配</Text>,
|
||||
},
|
||||
{
|
||||
title: 'Cookie',
|
||||
|
||||
@@ -311,7 +311,7 @@ export default function UsersPage() {
|
||||
if (groupKeys.length === 0) return null;
|
||||
return (
|
||||
<div key={group.label} style={{ marginBottom: 12 }}>
|
||||
<Divider orientation="left" style={{ margin: '8px 0 12px' }}>
|
||||
<Divider style={{ margin: '8px 0 12px' }}>
|
||||
{group.label}
|
||||
</Divider>
|
||||
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '8px 24px' }}>
|
||||
|
||||
Reference in New Issue
Block a user