From 7f58a02f6f74fa15c65a8a63301f6c1074b34308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Tue, 4 Apr 2023 11:23:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=BA=BA=E5=91=98=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/system/administrator/index.tsx | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/pages/system/administrator/index.tsx b/src/pages/system/administrator/index.tsx index 842b5b1..2df8df6 100644 --- a/src/pages/system/administrator/index.tsx +++ b/src/pages/system/administrator/index.tsx @@ -235,7 +235,6 @@ const SystemAdministratorPage = () => { 重 置 - setUpdateRoleVisible(true)} - disabled={null} - /> + {role_ids.length > 0 && ( + { + setUpdateRoleVisible(true); + }} + disabled={null} + /> + )}