mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-26 18:28:57 +00:00
标题区分(新建用户 修改用户)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user