|
@@ -147,7 +147,7 @@ export default {
|
|
|
this.setState(n)
|
|
|
},
|
|
|
searchValue(val) {
|
|
|
- this.$refs.tree.filter(val)
|
|
|
+ this.$refs.tree?.filter(val)
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
@@ -202,7 +202,7 @@ export default {
|
|
|
}
|
|
|
}, 200),
|
|
|
getCheckedKeys() {
|
|
|
- return this.$refs.tree.getCheckedKeys()
|
|
|
+ return this.$refs.tree?.getCheckedKeys()
|
|
|
},
|
|
|
setCheckedKeys(arr = []) {
|
|
|
this.$refs.tree.setCheckedKeys(arr)
|
|
@@ -236,7 +236,7 @@ export default {
|
|
|
|
|
|
return deepestNodes
|
|
|
},
|
|
|
- getArrIntersection(arr1, arr2) {
|
|
|
+ getArrIntersection(arr1 = [], arr2 = []) {
|
|
|
return arr1.filter(value => arr2.includes(value));
|
|
|
},
|
|
|
getArrItemWithLabel(valueArr = []) {
|