File tree Expand file tree Collapse file tree 3 files changed +2
-67
lines changed Expand file tree Collapse file tree 3 files changed +2
-67
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ export const pages = {
31
31
"404" : ( ) => import ( "@/pages/_builtin/404/index.tsx" ) ,
32
32
"500" : ( ) => import ( "@/pages/_builtin/500/index.tsx" ) ,
33
33
"iframe-page" : ( ) => import ( "@/pages/_builtin/iframe-page/index.tsx" ) ,
34
- "root" : ( ) => import ( "@/pages/index.tsx" ) ,
35
34
} ;
36
35
37
36
export const errors = {
Original file line number Diff line number Diff line change 1
- import { createBrowserRouter } from 'react-router ' ;
1
+ import { authRoutes , constantRoutes as routes } from './routes ' ;
2
2
3
- import { routes } from './routes' ;
4
-
5
- export { routes } ;
6
-
7
- export const router = createBrowserRouter ( routes , { basename : import . meta. env . VITE_BASE_URL } ) ;
8
-
9
- /** create routes when the auth route mode is static */
10
- export function createStaticRoutes ( ) {
11
- const constantRoutes : ElegantRoute [ ] = [ ] ;
12
-
13
- const authRoutes : ElegantRoute [ ] = [ ] ;
14
-
15
- [ ...customRoutes , ...generatedRoutes ] . forEach ( item => {
16
- if ( item . meta ?. constant ) {
17
- constantRoutes . push ( item ) ;
18
- } else {
19
- authRoutes . push ( item ) ;
20
- }
21
- } ) ;
22
-
23
- return {
24
- authRoutes,
25
- constantRoutes
26
- } ;
27
- }
3
+ export { authRoutes , routes } ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments