fix: AI 续写完成后自动取消内容选中状态
This commit is contained in:
parent
79db35c995
commit
c2e80304d6
@ -320,6 +320,9 @@ export function Editor() {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
if ((e as Error).name === 'AbortError') return
|
if ((e as Error).name === 'AbortError') return
|
||||||
} finally {
|
} finally {
|
||||||
|
if (editor) {
|
||||||
|
editor.commands.setTextSelection(editor.state.doc.content.size)
|
||||||
|
}
|
||||||
setAiContinuing(false)
|
setAiContinuing(false)
|
||||||
aiAbortRef.current = null
|
aiAbortRef.current = null
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user