兼容异常(张硕提)

This commit is contained in:
aixianling
2024-08-15 10:02:28 +08:00
parent 5897590973
commit a4f430be3e

View File

@@ -269,10 +269,9 @@ export default {
return list
},
filterNode(value, data) {
filterNode(value, data = {}) {
if (!value) return true
return (data.girdName && data.girdName.indexOf(value) !== -1) || (data.name && data.name.indexOf(value) !== -1) || (data.name && data.phone.indexOf(value) !== -1)
return ["girdName", "name", "phone"].some(e => data[e]?.includes(value))
},
onTreeChange(e) {