This commit is contained in:
yanran200730
2021-12-22 16:15:36 +08:00
parent 543ed3d746
commit b8767dfe76

View File

@@ -99,7 +99,9 @@ export default {
this.$emit('select', data)
},
handleFilter(v, data) {
return data?.deviceName?.indexOf(v) > -1
if (!v) return true
return data?.name?.indexOf(v) > -1
},
handleTreeFilter(v) {
this.$refs.deviceTree?.filter(v)