新增 全局错误toast提示;

This commit is contained in:
2025-09-14 02:54:08 +08:00
parent 9f94e92eaf
commit 46e07cc5ac
7 changed files with 368 additions and 172 deletions

View File

@@ -7,6 +7,7 @@ import { ImageCanvas } from './components/ImageCanvas';
import { HistoryPanel } from './components/HistoryPanel';
import { useKeyboardShortcuts } from './hooks/useKeyboardShortcuts';
import { useAppStore } from './store/useAppStore';
import { ToastProvider } from './components/ToastContext';
const queryClient = new QueryClient({
defaultOptions: {
@@ -59,7 +60,9 @@ function AppContent() {
function App() {
return (
<QueryClientProvider client={queryClient}>
<AppContent />
<ToastProvider>
<AppContent />
</ToastProvider>
</QueryClientProvider>
);
}