diff --git a/src/components/pages/selectGird.vue b/src/components/pages/selectGird.vue index 33a5aaa0..8bda5c71 100644 --- a/src/components/pages/selectGird.vue +++ b/src/components/pages/selectGird.vue @@ -93,7 +93,7 @@ export default { let parents = res.data.map(e => e.parentGirdId) this.allData = res.data.map(e => ({...e, hasChildren: parents.includes(e.id)})) this.treeInit() - if(this.$route.query.selected && this.$route.query.selected.length) { //确认按钮弹窗报错 + if(this.$route.query.selected) { //确认按钮弹窗报错 this.allData.map((item) => { if(item.id == this.$route.query.selected) { this.SelectGird = item