注意在切换时将对应初始值在单选改为多选时初始化为数组[],多选改为单选时初始化为undefine
changeMultiple(){ if (this.configForm.nodeType === 'Z') { this.configForm.zbcode= undefined; } if (this.configForm.nodeType === 'B') { this.configForm.zbcode= []; } },
注意在切换时将对应初始值在单选改为多选时初始化为数组[],多选改为单选时初始化为undefine
changeMultiple(){ if (this.configForm.nodeType === 'Z') { this.configForm.zbcode= undefined; } if (this.configForm.nodeType === 'B') { this.configForm.zbcode= []; } },