task-12(壳层/路由): 实现路由级错误页面(404 兜底)
新增 src/pages/error/NotFoundPage.vue(el-result + 返回首页),router 在业务路由 之后注册 :pathMatch(.*)* 兜底(无 menuKey,不参与权限门禁),保留壳层 chrome; main.css 增加 .not-found 布局。
This commit is contained in:
@@ -50,6 +50,7 @@ button, input, textarea, select { font: inherit; }
|
||||
.page-loading, .page-error { padding: 48px 20px; text-align: center; }
|
||||
.page-loading { color: var(--admin-muted); }
|
||||
.page-error { color: #b91c1c; }
|
||||
.not-found { padding: 56px 20px; }
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.admin-sidebar { flex-basis: 64px; }
|
||||
|
||||
Reference in New Issue
Block a user