feat: 成功和错误弹窗从顶部弹出

This commit is contained in:
zdl
2025-10-22 12:18:53 +08:00
parent cc210f9fda
commit 433a982a20
2 changed files with 52 additions and 7 deletions

View File

@@ -238,7 +238,16 @@ export default function App() {
}, []);
return (
<ChakraProvider theme={theme}>
<ChakraProvider
theme={theme}
toastOptions={{
defaultOptions: {
position: 'top',
duration: 3000,
isClosable: true,
}
}}
>
<ErrorBoundary>
<AuthProvider>
<AuthModalProvider>