fix(web): harden route transitions and monitor memory

This commit is contained in:
lingniu
2026-07-15 23:54:21 +08:00
parent 3fabcf181a
commit c29ccdf2da
17 changed files with 332 additions and 36 deletions

View File

@@ -1,7 +1,10 @@
import { IconAlertTriangle, IconRefresh } from '@douyinfe/semi-icons';
export function PageLoading({ label = '正在加载车辆数据' }: { label?: string }) {
return <div className="v2-page-state"><span className="v2-spinner" />{label}</div>;
return <section className="v2-page-state" role="status" aria-live="polite">
<header><span className="v2-spinner" /><div><strong>{label}</strong><small></small></div></header>
<div className="v2-page-skeleton"><i /><i /><i /><i /></div>
</section>;
}
export function InlineError({ message, onRetry }: { message: string; onRetry?: () => void }) {