From 465960a2811dcfdd7b92784ccde6da145ca383f8 Mon Sep 17 00:00:00 2001 From: Double-_-Z <2492419643@qq.com> Date: Wed, 23 Jul 2025 10:01:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E7=AE=A1=E7=90=86=E6=99=AF?= =?UTF-8?q?=E5=8C=BA=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/area/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/system/area/index.vue b/src/views/system/area/index.vue index 5293d7e..7ae3fb9 100644 --- a/src/views/system/area/index.vue +++ b/src/views/system/area/index.vue @@ -142,16 +142,17 @@ export default { parentId: data.parentId, parentName: data.parentName }]) - const type = node.level === 1 + const type = node.level === 1 || node.level === 2 console.log(type,node.level); - this.crud.title = type ? '区域' : '景区' + this.crud.title = node.level === 1 ? '区域' : '景区' this.form.type = type ? 'area' : 'scenic' this.getList(id,data) }, handleSourceClick(){ this.active = this.list[0].id; this.crud.title = '区域'; + this.form.type = 'area'; this.getList(this.list[0].id,{type:'source'}) }, // 查询景区