From c29be5009b469d967c5566072f4839f4161a3df1 Mon Sep 17 00:00:00 2001 From: AprilWind <2100166581@qq.com> Date: Tue, 23 Apr 2024 13:41:07 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=B2=97=E4=BD=8D=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=A0=91=E8=A1=A8=E5=92=8C=E5=8D=95=E8=A1=A8=E7=9B=B8=E4=BA=92?= =?UTF-8?q?undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/post/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 690d929..87ccf92 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -239,6 +239,7 @@ const getTreeSelect = async () => { /** 节点单击事件 */ const handleNodeClick = (data: DeptVO) => { queryParams.value.belongDeptId = data.id; + queryParams.value.deptId = undefined; handleQuery(); }; @@ -266,6 +267,9 @@ const reset = () => { /** 搜索按钮操作 */ const handleQuery = () => { queryParams.value.pageNum = 1; + if (queryParams.value.deptId) { + queryParams.value.belongDeptId = undefined; + } getList(); };