添加404界面,优化homeview代码可读性
This commit is contained in:
@@ -45,6 +45,11 @@ const router = createRouter({
|
||||
component: () => import('../views/Console/Dashboard.vue')
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'notFound',
|
||||
component: () => import('../views/NotFound.vue')
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user