fix: 模板设置自定义字段单选框混乱
This commit is contained in:
parent
0e13fc3883
commit
ea328759e6
|
@ -163,6 +163,10 @@ export default {
|
||||||
this.templateContainIds.add(data.id);
|
this.templateContainIds.add(data.id);
|
||||||
data.fieldId = data.id;
|
data.fieldId = data.id;
|
||||||
data.id = null;
|
data.id = null;
|
||||||
|
data.options = JSON.parse(data.options);
|
||||||
|
if (data.type === 'checkbox') {
|
||||||
|
data.defaultValue = [];
|
||||||
|
}
|
||||||
this.relateFields.push(data);
|
this.relateFields.push(data);
|
||||||
},
|
},
|
||||||
relateField() {
|
relateField() {
|
||||||
|
|
Loading…
Reference in New Issue