mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
忽略输出时不弹窗
This commit is contained in:
parent
39b8c23a73
commit
bc816f689f
@ -294,7 +294,7 @@ export default {
|
||||
editCommand() {
|
||||
let event = {
|
||||
type: "edit",
|
||||
data: this.commandInfo,
|
||||
data: this.commandInfo.features.code,
|
||||
};
|
||||
this.$emit("commandChanged", event);
|
||||
},
|
||||
|
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -411,6 +411,8 @@ export default {
|
||||
},
|
||||
// 编辑命令
|
||||
editCommand(command) {
|
||||
// 即可传入 code,也可直接传入 command
|
||||
if (typeof command === "string") command = this.allQuickCommands[command];
|
||||
this.commandEditorAction = {
|
||||
type: "edit",
|
||||
data: _.cloneDeep(command),
|
||||
|
Loading…
x
Reference in New Issue
Block a user