From 83886f1b64d3f785f2e21c98ad1d57535882f059 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 7 Sep 2023 11:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=9F=A5=E4=B8=8A=E6=8A=A5=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/pages/selectGird.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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