过滤空值

This commit is contained in:
aixianling
2022-05-31 15:49:03 +08:00
parent 58bbe2d5bc
commit 43428029de

View File

@@ -116,7 +116,7 @@ export default {
} }
}, },
created() { created() {
[this.$route.query.value].flat().map(id => this.$set(this.selected, id, {id})) [this.$route.query.value].filter(e=>!!e).flat().map(id => this.$set(this.selected, id, {id}))
this.getOptionsByRoot() this.getOptionsByRoot()
} }
} }