fix: 模板设置自定义字段单选框混乱

This commit is contained in:
chenjianxing 2021-04-27 22:03:45 +08:00 committed by jianxing
parent 0e13fc3883
commit ea328759e6
1 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,10 @@ export default {
this.templateContainIds.add(data.id);
data.fieldId = data.id;
data.id = null;
data.options = JSON.parse(data.options);
if (data.type === 'checkbox') {
data.defaultValue = [];
}
this.relateFields.push(data);
},
relateField() {