|
@@ -148,9 +148,10 @@ export default {
|
|
|
let ids = [];
|
|
|
for (let i = 0; i < this.checkedProperties.length; i++) {
|
|
|
let obj = this.checkedProperties[i];
|
|
|
- obj.firstProperty && ids.push(obj.firstProperty.id);
|
|
|
- if (obj.secondProperty) {
|
|
|
+ if (obj.firstProperty && obj.secondProperty) {
|
|
|
ids.push(obj.secondProperty.id);
|
|
|
+ } else {
|
|
|
+ ids.push(obj.firstProperty.id);
|
|
|
}
|
|
|
}
|
|
|
this.$refs.tree.setCheckedKeys(Array.from(new Set(ids)));
|