From f4a1b81c88e52da897ca1f4fea93b39c99e31ae5 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 24 May 2024 14:31:29 +0800 Subject: [PATCH] refactor: improve code base of role-related Signed-off-by: Ryan Wang --- .../modules/system/roles/RoleDetail.vue | 10 +-- .../modules/system/roles/RoleList.vue | 15 ++-- .../roles/components/RoleEditingModal.vue | 81 +++++-------------- .../modules/system/users/UserList.vue | 10 ++- .../users/components/GrantPermissionModal.vue | 30 +++---- ui/src/composables/use-role.ts | 52 ++++++------ 6 files changed, 80 insertions(+), 118 deletions(-) diff --git a/ui/console-src/modules/system/roles/RoleDetail.vue b/ui/console-src/modules/system/roles/RoleDetail.vue index 79096e6133..87a793dac2 100644 --- a/ui/console-src/modules/system/roles/RoleDetail.vue +++ b/ui/console-src/modules/system/roles/RoleDetail.vue @@ -1,14 +1,14 @@