diff --git a/web/app/dashboard/config/page.tsx b/web/app/dashboard/config/page.tsx index 83317a7..3f99fde 100644 --- a/web/app/dashboard/config/page.tsx +++ b/web/app/dashboard/config/page.tsx @@ -906,66 +906,27 @@ export default function ConfigPage() { {config && Object.entries(config.MAP).map(([path, target]) => ( - - {path} - - {typeof target === 'string' ? target : target.DefaultTarget} - - - {typeof target === 'object' && ( -
-
最小: {target.SizeThreshold ? formatBytes(target.SizeThreshold) : '-'}
-
最大: {target.MaxSize ? formatBytes(target.MaxSize) : '-'}
-
- )} -
- - {typeof target === 'object' && target.ExtensionMap && Object.keys(target.ExtensionMap).length > 0 ? ( - - - - 扩展名 - 目标地址 - 操作 - - - - {Object.entries(target.ExtensionMap).map(([ext, url]) => ( - - {ext} - - {truncateUrl(url)} - - -
- - -
-
-
- ))} -
-
- ) : ( -
- 暂无扩展名映射 -
- )} -
+ <> + + {path} + + {typeof target === 'string' ? target : target.DefaultTarget} + + + {typeof target === 'object' && target.SizeThreshold ? ( + + {formatBytes(target.SizeThreshold)} + + ) : '-'} + + + {typeof target === 'object' && target.MaxSize ? ( + + {formatBytes(target.MaxSize)} + + ) : '-'} + + -
-
- -
- - -
-
-
+ + +
+ + +
+
+ + {typeof target === 'object' && target.ExtensionMap && Object.keys(target.ExtensionMap).length > 0 && ( + + +
+ + + + 扩展名 + 目标地址 + 操作 + + + + {Object.entries(target.ExtensionMap).map(([ext, url]) => ( + + {ext} + + {truncateUrl(url)} + + +
+ + +
+
+
+ ))} +
+
+
+
+
+ )} + ))}