过滤空值
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user