mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
以防万一
This commit is contained in:
parent
c35b38753c
commit
989f9478ea
@ -565,6 +565,12 @@ export const FormItemStore = types
|
|||||||
|
|
||||||
const form = self.form;
|
const form = self.form;
|
||||||
const value = self.value;
|
const value = self.value;
|
||||||
|
|
||||||
|
// 有可能销毁了
|
||||||
|
if (!form) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const selected = Array.isArray(value)
|
const selected = Array.isArray(value)
|
||||||
? value.map(item =>
|
? value.map(item =>
|
||||||
item && item.hasOwnProperty(self.valueField || 'value')
|
item && item.hasOwnProperty(self.valueField || 'value')
|
||||||
|
Loading…
Reference in New Issue
Block a user