update 字典管理

This commit is contained in:
2021-06-16 14:47:04 +08:00
parent d020f67dba
commit 8f9e1a8d4e
8 changed files with 912 additions and 18 deletions

View File

@@ -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)