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';