From 126d693caf19bb43c606c5dea422d449954d9fdc Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 16 Aug 2024 11:24:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=91=E5=9B=BE):=20=E5=B1=95=E5=BC=80?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E5=88=B7=E6=96=B0=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pure/ms-minder-editor/hooks/useMinderOperation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/pure/ms-minder-editor/hooks/useMinderOperation.ts b/frontend/src/components/pure/ms-minder-editor/hooks/useMinderOperation.ts index 0738ad5801..78db295ee2 100644 --- a/frontend/src/components/pure/ms-minder-editor/hooks/useMinderOperation.ts +++ b/frontend/src/components/pure/ms-minder-editor/hooks/useMinderOperation.ts @@ -269,8 +269,8 @@ export default function useMinderOperation(options: MinderOperationProps) { if (!options.customPriority) { // 展开后,需要设置一次优先级展示,避免展开后优先级显示成脑图内置文案;如果设置了自定义优先级,则不在此设置,由外部自行处理 setPriorityView(!!options.priorityStartWithZero, options.priorityPrefix || ''); - window.minder.refresh(); } + window.minder.refresh(); minderStore.dispatchEvent(MinderEventName.COLLAPSE, undefined, undefined, undefined, selectedNodes); } else { // 选中的节点集合中有一个节点未展开,则全部展开 @@ -286,8 +286,8 @@ export default function useMinderOperation(options: MinderOperationProps) { if (!options.customPriority) { // 展开后,需要设置一次优先级展示,避免展开后优先级显示成脑图内置文案;如果设置了自定义优先级,则不在此设置,由外部自行处理 setPriorityView(!!options.priorityStartWithZero, options.priorityPrefix || ''); - window.minder.refresh(); } + window.minder.refresh(); minderStore.dispatchEvent(MinderEventName.EXPAND, undefined, undefined, undefined, selectedNodes); } };