还原,不能这样改

This commit is contained in:
2betop 2020-07-23 15:20:31 +08:00
parent 69e305ff9a
commit bba949bba8
1 changed files with 2 additions and 1 deletions

View File

@ -269,7 +269,8 @@ export default class FormControl extends React.PureComponent<
if ( if (
form !== store && form !== store &&
data !== prevProps.data && data !== prevProps.data &&
(value = getVariable(data as any, name)) !== this.getValue() (value = getVariable(data as any, name)) !==
getVariable(prevProps.data, name)
) { ) {
this.handleChange(value, false, true); this.handleChange(value, false, true);
} }