From e440013ceeab4f04b686a01a515ac1e30b02ee48 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 22 Jan 2017 15:45:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E9=A2=98=E5=8C=BA=E5=88=86=EF=BC=88?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E7=94=A8=E6=88=B7=20=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E6=88=B7=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/users/modal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/users/modal.js b/src/components/users/modal.js index fb701b6..2ac2d7e 100644 --- a/src/components/users/modal.js +++ b/src/components/users/modal.js @@ -13,6 +13,7 @@ const formItemLayout = { const modal = ({ visible, + type, item = {}, onOk, onCancel, @@ -36,7 +37,7 @@ const modal = ({ } const modalOpts = { - title: '修改用户', + title: `${type === 'create' ? '新建用户' : '修改用户'}`, visible, onOk: handleOk, onCancel,