mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
refactor(core): adjust error detail and add error component to routes (#8234)
close PD-1430 https://github.com/user-attachments/assets/9447eaa5-c8b3-4108-96f1-d67ab45f249d 
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { ResizePanel } from '@affine/component/resize-panel';
|
||||
import { AffineErrorComponent } from '@affine/core/components/affine/affine-error-boundary/affine-error-fallback';
|
||||
import { rightSidebarWidthAtom } from '@affine/core/components/atoms';
|
||||
import { workbenchRoutes } from '@affine/core/desktop/workbench-router';
|
||||
import {
|
||||
@@ -29,6 +30,7 @@ const useAdapter = BUILD_CONFIG.isElectron
|
||||
const routes: RouteObject[] = [
|
||||
{
|
||||
element: <RouteContainer />,
|
||||
errorElement: <AffineErrorComponent />,
|
||||
children: workbenchRoutes,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user