task-12(壳层/路由): 实现路由级错误页面(404 兜底)

新增 src/pages/error/NotFoundPage.vue(el-result + 返回首页),router 在业务路由
之后注册 :pathMatch(.*)* 兜底(无 menuKey,不参与权限门禁),保留壳层 chrome;
main.css 增加 .not-found 布局。
This commit is contained in:
2026-09-05 12:24:05 +08:00
parent 50e70c43ab
commit f4f7268045
4 changed files with 95 additions and 4 deletions
+1
View File
@@ -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; }