From 676af0c4eddcbf9a5f700515f0abfef0b0501e44 Mon Sep 17 00:00:00 2001 From: mingchiuli <80095372+mingchiuli@users.noreply.github.com> Date: Thu, 30 May 2024 09:50:20 +0800 Subject: [PATCH 1/2] Update UsersView.vue --- src/views/sys/UsersView.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/views/sys/UsersView.vue b/src/views/sys/UsersView.vue index 717799b6..26c0e03a 100644 --- a/src/views/sys/UsersView.vue +++ b/src/views/sys/UsersView.vue @@ -159,10 +159,7 @@ const clearForm = () => { } const getRoleName = (item: string) => { - let list = roleList.value.filter(role => role.code === item) - if (list) { - return list[0].name - } + return roleList.value.filter(role => role.code === item)[0]?.name } const handleSizeChange = async (val: number) => { @@ -387,4 +384,4 @@ const getRegisterLink = async (username: string) => { .phone { width: 400px } - \ No newline at end of file + From c46be3024619194f867a0ab617b9e06dbbc065ad Mon Sep 17 00:00:00 2001 From: mingchiuli <80095372+mingchiuli@users.noreply.github.com> Date: Thu, 30 May 2024 10:16:49 +0800 Subject: [PATCH 2/2] Update front.css --- src/assets/front.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/front.css b/src/assets/front.css index abd51474..6e6e26e1 100644 --- a/src/assets/front.css +++ b/src/assets/front.css @@ -2,5 +2,5 @@ max-width: 40rem; margin: 0 auto; padding: 1rem; - min-height: calc(100vh - 118px) -} \ No newline at end of file + min-height: calc(100vh - 120px) +}