form 提交api 添加 sendOn 判断

This commit is contained in:
liaoxuezhi 2019-09-17 19:37:12 +08:00
parent 5c1fd15204
commit 76681ccd59

View File

@ -506,7 +506,7 @@ export default class Form extends React.Component<FormProps, object> {
store.openDialog(data);
} else if (action.actionType === 'drawer') {
store.openDrawer(data);
} else if (action.api || api) {
} else if (isEffectiveApi(action.api || api, values)) {
let finnalAsyncApi = action.asyncApi || asyncApi;
isEffectiveApi(finnalAsyncApi, store.data) &&