|
|
@@ -6,6 +6,7 @@ import { RouterProvider } from 'react-router-dom'
|
|
|
import { router } from './routes'
|
|
|
import { ToastContainer } from 'react-toastify'
|
|
|
import 'react-toastify/dist/ReactToastify.css'
|
|
|
+import { Toaster } from '../components/ui/sonner'
|
|
|
|
|
|
// 创建QueryClient实例
|
|
|
const queryClient = new QueryClient();
|
|
|
@@ -28,6 +29,7 @@ const App = () => {
|
|
|
pauseOnHover
|
|
|
theme="light"
|
|
|
/>
|
|
|
+ <Toaster />
|
|
|
</AuthProvider>
|
|
|
</QueryClientProvider>
|
|
|
)
|