From 5f962a5b2cfcfe61199e790984af136ca8e395ab Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 6 May 2026 22:49:26 +0800 Subject: [PATCH] style: remove unnecessary comment in components index and ErrorBoundary Co-Authored-By: Claude Opus 4.7 --- src/components/ErrorBoundary/index.tsx | 1 - src/components/index.ts | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/components/ErrorBoundary/index.tsx b/src/components/ErrorBoundary/index.tsx index 591dc0ff..945ce3b8 100644 --- a/src/components/ErrorBoundary/index.tsx +++ b/src/components/ErrorBoundary/index.tsx @@ -128,7 +128,6 @@ export default class ErrorBoundary extends React.Component< console.error('[ErrorBoundary]', error, info.componentStack); } - /** Retry loading the failed module without a full page reload. */ handleRetry = () => { // Incrementing retryCount changes the key on the children fragment, // forcing React to unmount and remount all lazy components. diff --git a/src/components/index.ts b/src/components/index.ts index ff7d559b..b22709db 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -14,9 +14,6 @@ import { AvatarDropdown } from './RightContent/AvatarDropdown'; */ export { default as ArticleListContent } from './ArticleListContent'; export { default as AvatarList } from './AvatarList'; -/** - * 通用组件 - */ export { default as ErrorBoundary } from './ErrorBoundary'; export { default as OfflineBanner } from './OfflineBanner'; export { default as StandardFormRow } from './StandardFormRow';