修复建议命令草稿残留引用
- 准备命令草稿前先清空编辑器 - 避免提交用户上一轮选择的素材引用
This commit is contained in:
@@ -4615,6 +4615,7 @@ export function App({
|
||||
}
|
||||
|
||||
function prepareChatCommandDraft(commandDraft: string) {
|
||||
chatComposerRef.current?.clear();
|
||||
chatComposerRef.current?.replaceText(commandDraft);
|
||||
window.setTimeout(() => chatInputRef.current?.focus(), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user