fix(miniprogram): 添加全局 ErrorBoundary,修复 tryRefreshToken 静默吞异常

This commit is contained in:
iven
2026-04-24 12:20:34 +08:00
parent f3716dbdc5
commit 74d7efec1f
3 changed files with 42 additions and 3 deletions

View File

@@ -1,8 +1,9 @@
import { PropsWithChildren } from 'react';
import ErrorBoundary from './components/ErrorBoundary';
import './app.scss';
function App({ children }: PropsWithChildren<Record<string, unknown>>) {
return children;
return <ErrorBoundary>{children}</ErrorBoundary>;
}
export default App;