fix: 修复404页面
This commit is contained in:
parent
30e53778c9
commit
85fd17cd8c
|
|
@ -38,7 +38,7 @@ router.beforeEach((to, from, next) => {
|
||||||
router.addRoute('base',{
|
router.addRoute('base',{
|
||||||
path: '/:pathMatch(.*)',
|
path: '/:pathMatch(.*)',
|
||||||
name: 'error',
|
name: 'error',
|
||||||
component: () => NotFindPage
|
component: NotFindPage
|
||||||
})
|
})
|
||||||
|
|
||||||
next({ ...to, replace: true })
|
next({ ...to, replace: true })
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue