File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,6 @@ export const useRouterStore = defineStore('router', () => {
77
77
const asyncRouterRes = await asyncMenu ( )
78
78
const asyncRouter = asyncRouterRes . data . menus
79
79
asyncRouter && asyncRouter . push ( {
80
- path : '404' ,
81
- name : '404' ,
82
- hidden : true ,
83
- meta : {
84
- title : '迷路了*。*' ,
85
- closeTab : true ,
86
- } ,
87
- component : 'view/error/index.vue'
88
- } , {
89
80
path : 'reload' ,
90
81
name : 'Reload' ,
91
82
hidden : true ,
@@ -100,11 +91,6 @@ export const useRouterStore = defineStore('router', () => {
100
91
if ( notLayoutRouterArr . length !== 0 ) {
101
92
baseRouter . push ( ...notLayoutRouterArr )
102
93
}
103
- baseRouter . push ( {
104
- path : '/:catchAll(.*)' ,
105
- redirect : '/layout/404'
106
-
107
- } )
108
94
asyncRouterHandle ( baseRouter )
109
95
KeepAliveFilter ( asyncRouter )
110
96
asyncRouters . value = baseRouter
Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ const routes = [{
13
13
path : '/login' ,
14
14
name : 'Login' ,
15
15
component : ( ) => import ( '@/view/login/index.vue' )
16
+ } ,
17
+ {
18
+ path : '/:catchAll(.*)' ,
19
+ meta : {
20
+ closeTab : true ,
21
+ } ,
22
+ component : ( ) => import ( '@/view/error/index.vue' )
16
23
}
17
24
]
18
25
You can’t perform that action at this time.
0 commit comments