fix(miniprogram): 添加全局 ErrorBoundary,修复 tryRefreshToken 静默吞异常
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user