From ba780a7d3fb9b9b417443eb361a3e3663f2655ba Mon Sep 17 00:00:00 2001 From: Li Kui <90845831+likui628@users.noreply.github.com> Date: Sat, 13 Jul 2024 11:49:18 +0800 Subject: [PATCH] chore: update access demo --- .../src/modules/menu/menu.controller.ts | 11 ++ .../src/views/demos/access/admin-visible.vue | 2 +- .../src/views/demos/access/button-control.vue | 114 +++++++++--------- .../views/demos/access/menu-visible-403.vue | 2 +- .../src/views/demos/access/super-visible.vue | 2 +- .../src/views/demos/access/user-visible.vue | 2 +- 6 files changed, 72 insertions(+), 61 deletions(-) diff --git a/apps/backend-mock/src/modules/menu/menu.controller.ts b/apps/backend-mock/src/modules/menu/menu.controller.ts index ddf9755d..48456579 100644 --- a/apps/backend-mock/src/modules/menu/menu.controller.ts +++ b/apps/backend-mock/src/modules/menu/menu.controller.ts @@ -118,6 +118,17 @@ export class MenuController { title: 'page.demos.access.buttonControl', }, }, + { + name: 'AccessMenuVisible403', + path: 'menu-visible-403', + component: '/demos/access/menu-visible-403', + meta: { + authority: ['no-body'], + icon: 'mdi:button-cursor', + menuVisibleWithForbidden: true, + title: 'page.demos.access.menuVisible403', + }, + }, roleWithMenus[role], ], }, diff --git a/apps/web-antd/src/views/demos/access/admin-visible.vue b/apps/web-antd/src/views/demos/access/admin-visible.vue index 526efac1..d32ac197 100644 --- a/apps/web-antd/src/views/demos/access/admin-visible.vue +++ b/apps/web-antd/src/views/demos/access/admin-visible.vue @@ -1,7 +1,7 @@