generated from duanshuwen/webapp-vue-frontend
feat: 搭建首页的效果
This commit is contained in:
@@ -14,7 +14,7 @@ router.beforeEach((to, from, next) => {
|
||||
const keepAlive = to?.meta?.keepAlive
|
||||
|
||||
if (!router.hasRoute(to.name)) {
|
||||
router.push('/error')
|
||||
router.push('/home')
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user