忽略输出时不弹窗

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() { editCommand() {
let event = { let event = {
type: "edit", type: "edit",
data: this.commandInfo, data: this.commandInfo.features.code,
}; };
this.$emit("commandChanged", event); this.$emit("commandChanged", event);
}, },

View File

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

View File

@ -411,6 +411,8 @@ export default {
}, },
// //
editCommand(command) { editCommand(command) {
// code command
if (typeof command === "string") command = this.allQuickCommands[command];
this.commandEditorAction = { this.commandEditorAction = {
type: "edit", type: "edit",
data: _.cloneDeep(command), data: _.cloneDeep(command),