From c44016a5ca3509dbf62ff08afc911758dbd140b5 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sun, 16 Feb 2025 13:42:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BF=90=E8=A1=8C=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=A1=B5=E9=9D=A2=E8=BE=93=E5=87=BA=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=94=99=E8=AF=AF=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/editor/CommandLanguageBar.vue | 4 ++++ src/pages/RunComposerPage.vue | 1 + 2 files changed, 5 insertions(+) diff --git a/src/components/editor/CommandLanguageBar.vue b/src/components/editor/CommandLanguageBar.vue index 96b70d3..1071d73 100644 --- a/src/components/editor/CommandLanguageBar.vue +++ b/src/components/editor/CommandLanguageBar.vue @@ -269,7 +269,11 @@ export default { this.isSettingsVisible = true; } if (newProgram === "html") { + // 如果是html命令,则设置output为html newCommand.output = "html"; + } else if (this.isRunCodePage) { + // 否则,运行代码页面,恢复output为text + newCommand.output = "text"; } const featuresIcon = this.currentCommand.features.icon || ""; if (featuresIcon.slice(0, 10) !== "data:image") { diff --git a/src/pages/RunComposerPage.vue b/src/pages/RunComposerPage.vue index c312eca..991e84b 100644 --- a/src/pages/RunComposerPage.vue +++ b/src/pages/RunComposerPage.vue @@ -19,6 +19,7 @@ export default { ...defaultCommand, ...savedCommand, program: "quickcomposer", + output: "text", }; }, };