mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 15:04:06 +08:00
忽略输出时不弹窗
This commit is contained in:
parent
39b8c23a73
commit
bc816f689f
@ -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);
|
||||||
},
|
},
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user