diff --git a/packages/devui-vue/devui/editor-md/src/composables/use-editor-md.ts b/packages/devui-vue/devui/editor-md/src/composables/use-editor-md.ts index 65d0c0a00e..fc89cd6ab7 100644 --- a/packages/devui-vue/devui/editor-md/src/composables/use-editor-md.ts +++ b/packages/devui-vue/devui/editor-md/src/composables/use-editor-md.ts @@ -195,7 +195,6 @@ export function useEditorMd(props: EditorMdProps, ctx: SetupContext) { editorIns.focus(); hideHint(); }; - handler && handler({ prefix, cursorHint, callback }); }; @@ -236,10 +235,6 @@ export function useEditorMd(props: EditorMdProps, ctx: SetupContext) { } } if (cursorHintStart > -1 && hint[0]) { - const spacePosition = value.lastIndexOf(' ', cursor.ch); - if (spacePosition > cursorHintStart) { - return; - } /* cursor元素将动态变更,设置settimeout保持其可以获取到值 */ setTimeout(() => { showHint();