From e839d59e1f2fe96f09629a2976d5328cb39c31d2 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Wed, 17 May 2023 11:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90-=E5=8A=9F=E8=83=BD=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=E7=94=A8=E6=88=B7=E6=98=BE=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/organization/containers/authority.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/client/src/sections/organization/containers/authority.js b/web/client/src/sections/organization/containers/authority.js index 9a409af..adde719 100644 --- a/web/client/src/sections/organization/containers/authority.js +++ b/web/client/src/sections/organization/containers/authority.js @@ -36,6 +36,8 @@ const Authority = (props) => { setUserSelected(depUser[0].username) dispatch(getUserResource(depUser[0].id)) setUseName(depUser[0].name) + } else { + setUseName('') } }, [depUser]) @@ -114,7 +116,7 @@ const Authority = (props) => {
- {`【${useName ? useName : '管理员'}】 功能范围`} + {`【${useName || ''}】 功能范围`}
{depUser.length ?