update 字典管理
This commit is contained in:
@@ -121,9 +121,11 @@ export default class ModalForm extends Component {
|
||||
try {
|
||||
const postData = await body.getData()
|
||||
|
||||
const { success } = await this.action(postData)
|
||||
if (success) {
|
||||
Message.success(this.props.successMessage || '保存成功')
|
||||
const result = await this.action(postData)
|
||||
if (!result || result.success) {
|
||||
if (result && result.success) {
|
||||
Message.success(this.props.successMessage || '保存成功')
|
||||
}
|
||||
this.close()
|
||||
if (typeof this.props.onSuccess === 'function') {
|
||||
this.props.onSuccess(postData)
|
||||
|
||||
Reference in New Issue
Block a user