From 6e749c4e2d8351b1680cf9a57555bf09ddfb8757 Mon Sep 17 00:00:00 2001 From: baiqi Date: Thu, 7 Nov 2024 15:17:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=91=E5=9B=BE):=20=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E9=94=AE=E6=98=AF=E5=90=A6=E5=8F=AF=E7=BC=96=E8=BE=91=E5=88=A4?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/pure/ms-minder-editor/minderEditor.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/pure/ms-minder-editor/minderEditor.vue b/frontend/src/components/pure/ms-minder-editor/minderEditor.vue index f2aac7add1..25cf9136d6 100644 --- a/frontend/src/components/pure/ms-minder-editor/minderEditor.vue +++ b/frontend/src/components/pure/ms-minder-editor/minderEditor.vue @@ -59,7 +59,7 @@ tagProps, viewMenuProps, } from './props'; - import { isNodeInMinderView } from './script/tool/utils'; + import { isDisableNode, isNodeInMinderView } from './script/tool/utils'; const emit = defineEmits<{ (e: 'moldChange', data: number): void; @@ -132,7 +132,9 @@ const { unbindShortcuts } = useShortCut( { input: () => { - window.minderEditor.editText(); + if (window.minder._status !== 'readonly' && !isDisableNode(window.minder)) { + window.minderEditor.editText(); + } }, undo: () => { window.minderHistory?.undo();