fix(脑图): 禁用状态不记录未保存

This commit is contained in:
baiqi 2024-08-16 17:39:42 +08:00 committed by 刘瑞斌
parent 3ac784c035
commit 60ebc232a7
1 changed files with 5 additions and 1 deletions

View File

@ -142,7 +142,11 @@
if (props.disabled) {
['movetoparent', 'arrange'].forEach((item) => notChangeCommands.add(item));
}
if (selectNodes.length > 0 && !notChangeCommands.has(event.commandName.toLocaleLowerCase())) {
if (
!props.disabled &&
selectNodes.length > 0 &&
!notChangeCommands.has(event.commandName.toLocaleLowerCase())
) {
minderStore.setMinderUnsaved(true);
selectNodes.forEach((node: MinderJsonNode) => {
markChangeNode(node);