From a6ac0475e0ac666bd36a426ba74c326c12a607b6 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Thu, 31 Jul 2025 14:20:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=9C=8D=E5=8A=A1=E6=8C=87?= =?UTF-8?q?=E4=BB=A4-=E7=82=B9=E5=87=BB=E6=A0=91=E4=BB=BB=E4=BD=95?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E4=BC=9A=E5=88=B7=E6=96=B0=E6=A0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../serviceDirective/ConfigServiceDirectiveList.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/services/serviceDirective/ConfigServiceDirectiveList.vue b/src/views/services/serviceDirective/ConfigServiceDirectiveList.vue index e08b1bc..27b660b 100644 --- a/src/views/services/serviceDirective/ConfigServiceDirectiveList.vue +++ b/src/views/services/serviceDirective/ConfigServiceDirectiveList.vue @@ -478,17 +478,19 @@ function expandTreeNodeToLevel4(directiveData: any) { /** * 查询 */ -function searchQuery() { +function searchQuery(reloadTree = true) { if (!!queryParam.directiveName || !!queryParam.bodyTags || !!queryParam.emotionTags || !!queryParam.izEnabled) { queryParam.instructionTagId = ''; queryParam.categoryId = ''; queryParam.typeId = ''; } reload().then(() => { - initTree(); - }); -} + if (reloadTree) { + initTree(); + } + }) +} /** * 重置 @@ -944,7 +946,7 @@ function handleTreeSelect(selectedKeys: string[], { node }: any) { } if (level == 5) return // 触发查询 - searchQuery(); + searchQuery(false); } function initTree() {