fix: 修复 #6961 引发的问题

This commit is contained in:
2betop 2023-05-24 20:14:03 +08:00
parent a5671a8e2d
commit 551d8c4479

View File

@ -189,7 +189,7 @@ export const FormStore = ServiceStore.named('FormStore')
// 如果数据域中有数据变化就都reset一下去掉之前残留的验证消息
self.items.forEach(item => {
const value = item.value;
if (value !== item.tmpValue) {
if (typeof value !== 'undefined' && value !== item.tmpValue) {
item.changeTmpValue(value);
}
item.reset();