mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
fix: 修复 form 请求回来后验证获取数据任为旧数据的问题 Close: #6949
This commit is contained in:
parent
3e394cbae7
commit
32e2963841
@ -187,7 +187,13 @@ export const FormStore = ServiceStore.named('FormStore')
|
|||||||
self.updateData(values, tag, replace);
|
self.updateData(values, tag, replace);
|
||||||
|
|
||||||
// 如果数据域中有数据变化,就都reset一下,去掉之前残留的验证消息
|
// 如果数据域中有数据变化,就都reset一下,去掉之前残留的验证消息
|
||||||
self.items.forEach(item => item.reset());
|
self.items.forEach(item => {
|
||||||
|
const value = item.value;
|
||||||
|
if (value !== item.tmpValue) {
|
||||||
|
item.changeTmpValue(value);
|
||||||
|
}
|
||||||
|
item.reset();
|
||||||
|
});
|
||||||
|
|
||||||
// 同步 options
|
// 同步 options
|
||||||
syncOptions();
|
syncOptions();
|
||||||
|
Loading…
Reference in New Issue
Block a user