修复快速双击两次命令卡片或者新建按钮时导致命令显示异常的BUG

This commit is contained in:
fofolee 2025-03-29 00:10:46 +08:00
parent 05402fed3d
commit 4c2f835222

View File

@ -167,6 +167,8 @@ export default {
}, },
// //
editCommand(commandOrCode) { editCommand(commandOrCode) {
//
if (this.isEditorShow) return;
// code command // code command
const command = const command =
typeof commandOrCode === "string" typeof commandOrCode === "string"
@ -182,6 +184,8 @@ export default {
}, },
// //
addNewCommand(program = "quickcommand") { addNewCommand(program = "quickcommand") {
//
if (this.isEditorShow) return;
this.editorComponent = this.editorComponent =
program === "quickcomposer" ? "ComposerEditor" : "CommandEditor"; program === "quickcomposer" ? "ComposerEditor" : "CommandEditor";
this.commandManager.state.currentCommand = this.commandManager.state.currentCommand =