完全替换MonocoEditor组件为CodeEditor组件

This commit is contained in:
fofolee
2025-02-15 12:28:27 +08:00
parent 4262182f63
commit 0dc695277e
3 changed files with 7 additions and 342 deletions

View File

@@ -81,7 +81,7 @@ const CodeEditor = defineAsyncComponent({
timeout: 3000,
});
// TODO: 对称加密声明,保存命令不需要设置
// TODO: 对称加密声明,运行命令不需要设置commandTypes调整
export default {
components: {
CodeEditor,
@@ -179,9 +179,9 @@ export default {
break;
case "apply":
// actionData 命令的cmd
console.log(actionData);
this.showComposer = false;
this.quickcommandInfo.cmd = actionData;
this.$refs.editor.formatDocument();
break;
case "close":
this.showComposer = false;