mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-07 21:46:12 +08:00
修复更改subcommand时,output不变更的bug
This commit is contained in:
parent
2cb0c6bb32
commit
a8c3528566
@ -220,7 +220,10 @@ export default defineComponent({
|
|||||||
code: this.generateCode(subCommand, argvs),
|
code: this.generateCode(subCommand, argvs),
|
||||||
};
|
};
|
||||||
if (resetOutputVariable) {
|
if (resetOutputVariable) {
|
||||||
delete newModelValue.outputVariable;
|
newModelValue.outputVariable = {
|
||||||
|
name: "",
|
||||||
|
details: {},
|
||||||
|
};
|
||||||
}
|
}
|
||||||
this.$emit("update:modelValue", newModelValue);
|
this.$emit("update:modelValue", newModelValue);
|
||||||
},
|
},
|
||||||
|
@ -200,7 +200,7 @@ export default defineComponent({
|
|||||||
currentSubCommand() {
|
currentSubCommand() {
|
||||||
if (!this.command.subCommands) return {};
|
if (!this.command.subCommands) return {};
|
||||||
return this.command.subCommands.find(
|
return this.command.subCommands.find(
|
||||||
(cmd) => cmd.value === this.command.value
|
(cmd) => cmd.value === this.command.subCommand
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
commandName() {
|
commandName() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user