From 314dc2133b1a6cfacb727512e8168a3e40972172 Mon Sep 17 00:00:00 2001 From: qlin Date: Sat, 12 Oct 2024 10:08:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20403=20404=20=E9=A1=B5=E9=9D=A2=E6=96=87?= =?UTF-8?q?=E6=A1=88=E5=8F=AF=E9=85=8D=E7=BD=AE=20(#253)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/plugin/plugins/layout.md | 9 +++- .../src/runtime/views/403.vue | 11 ++++- .../src/runtime/views/404.vue | 10 +++- packages/fes-runtime/types.d.ts | 8 +-- packages/fes-template/src/app.jsx | 49 ++++++++++--------- 5 files changed, 57 insertions(+), 30 deletions(-) diff --git a/docs/reference/plugin/plugins/layout.md b/docs/reference/plugin/plugins/layout.md index 57db755a6..9da4e3725 100644 --- a/docs/reference/plugin/plugins/layout.md +++ b/docs/reference/plugin/plugins/layout.md @@ -130,7 +130,14 @@ export default { }, { name: 'simpleList' }], - + // 403 页面配置 + 403: { + title: '没有访问权限,请联系管理人员', + }, + // 404 页面配置 + 404: { + title: '哎呀!这个页面找不到了', + } }, }; ``` diff --git a/packages/fes-plugin-layout/src/runtime/views/403.vue b/packages/fes-plugin-layout/src/runtime/views/403.vue index 78a2b93ce..3c297ef3a 100644 --- a/packages/fes-plugin-layout/src/runtime/views/403.vue +++ b/packages/fes-plugin-layout/src/runtime/views/403.vue @@ -1,8 +1,10 @@ +