From 3935fea2a9a44c52ff12b912b1719bceda18894f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Mon, 27 Mar 2023 14:56:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF=E6=9C=89?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=8F=B7=E6=89=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/user-info/index.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/compenents/user-info/index.tsx b/src/compenents/user-info/index.tsx index 28cf71d..4420bd4 100644 --- a/src/compenents/user-info/index.tsx +++ b/src/compenents/user-info/index.tsx @@ -107,12 +107,16 @@ export const UserInfoModel: React.FC = ({ open, onCancel }) => { - -
{name}
-
- -
{idCard}
-
+ {name && ( + +
{name}
+
+ )} + {idCard && ( + +
{idCard}
+
+ )}