fix(脑图): 禁用状态不记录未保存
This commit is contained in:
parent
3ac784c035
commit
60ebc232a7
|
@ -142,7 +142,11 @@
|
||||||
if (props.disabled) {
|
if (props.disabled) {
|
||||||
['movetoparent', 'arrange'].forEach((item) => notChangeCommands.add(item));
|
['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);
|
minderStore.setMinderUnsaved(true);
|
||||||
selectNodes.forEach((node: MinderJsonNode) => {
|
selectNodes.forEach((node: MinderJsonNode) => {
|
||||||
markChangeNode(node);
|
markChangeNode(node);
|
||||||
|
|
Loading…
Reference in New Issue