fix #3995: validateApi接口提交字段未上一次内容问题 (#4151)

This commit is contained in:
RUNZE LU 2022-04-29 11:46:17 +08:00 committed by GitHub
parent 24cce037ea
commit aa7499eba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,7 +349,8 @@ export const FormItemStore = StoreNode.named('FormItemStore')
const json: Payload = yield getEnv(self).fetcher(
self.validateApi,
data,
/** 如果配置validateApi需要将用户最新输入同步到数据域内 */
createObject(data, {[self.name]: self.tmpValue}),
{
cancelExecutor: (executor: Function) =>
(validateCancel = executor)