diff --git a/app/(app)/dashboard/page.tsx b/app/(app)/dashboard/page.tsx index 4d4c82e..f33b750 100644 --- a/app/(app)/dashboard/page.tsx +++ b/app/(app)/dashboard/page.tsx @@ -191,7 +191,7 @@ const Dashboard: React.FC = () => { {Object.entries(plugins) .filter(([key]) => key !== 'Cookie') .map(([key, Plugin]) => ( - + ))} diff --git a/app/(app)/logviewer/page.tsx b/app/(app)/logviewer/page.tsx index 6c4c23f..2c8c5d9 100644 --- a/app/(app)/logviewer/page.tsx +++ b/app/(app)/logviewer/page.tsx @@ -17,14 +17,6 @@ interface LogContentProps { } const LogContent = ({ logs, logContainerRef, isLoading }: LogContentProps) => { - if (isLoading) { - return ( -
- -
- ) - } - // 判断滚动条是否接近底部 const isScrolledToBottom = () => { const containers = document.getElementsByClassName('log-container'); @@ -53,6 +45,14 @@ const LogContent = ({ logs, logContainerRef, isLoading }: LogContentProps) => { } }, [logs]); + if (isLoading) { + return ( +
+ +
+ ) + } + return (
{ @@ -211,7 +212,7 @@ export default function LogViewer() { activeKey={activeTab} onChange={handleFileChange} tabBarExtraContent={ -
+