忽略输出时不弹窗

This commit is contained in:
fofolee
2022-04-14 00:09:59 +08:00
parent 39b8c23a73
commit bc816f689f
3 changed files with 5 additions and 3 deletions

View File

@@ -294,7 +294,7 @@ export default {
editCommand() {
let event = {
type: "edit",
data: this.commandInfo,
data: this.commandInfo.features.code,
};
this.$emit("commandChanged", event);
},

View File

@@ -99,7 +99,7 @@ export default {
if (currentCommand.program === "quickcommand") {
window.runCodeInVm(currentCommand.cmd, (stdout, stderr) => {
if (stderr) return this.showRunResult(stderr, false, action);
this.showRunResult(stdout, true, action);
!outPlugin && this.showRunResult(stdout, true, action);
});
} else {
let option = this.$programmings[currentCommand.program];
@@ -113,7 +113,7 @@ export default {
currentCommand.output === "terminal",
(stdout, stderr) => {
if (stderr) return this.showRunResult(stderr, false, action);
this.showRunResult(stdout, true, action);
!outPlugin && this.showRunResult(stdout, true, action);
}
);
}