fix: AI 续写完成后自动取消内容选中状态

This commit is contained in:
MikiVL 2026-05-05 04:02:12 +08:00
parent 79db35c995
commit c2e80304d6

View File

@ -320,6 +320,9 @@ export function Editor() {
} catch (e) {
if ((e as Error).name === 'AbortError') return
} finally {
if (editor) {
editor.commands.setTextSelection(editor.state.doc.content.size)
}
setAiContinuing(false)
aiAbortRef.current = null
}