标题区分(新建用户 修改用户)

This commit is contained in:
Jason
2017-01-22 15:45:04 +08:00
committed by GitHub
parent 60ff1ec0bb
commit e440013cee
+2 -1
View File
@@ -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,