样式微调,冗余代码清理

This commit is contained in:
fofolee
2025-02-12 15:16:30 +08:00
parent b4a14e2a9e
commit e71d7081a8
6 changed files with 19 additions and 22 deletions

View File

@@ -203,12 +203,6 @@ export default defineComponent({
(cmd) => cmd.value === this.command.value
);
},
defaultOutputVariable() {
return (
this.currentSubCommand?.defaultOutputVariable ||
this.command.defaultOutputVariable
);
},
commandName() {
return this.currentSubCommand.label || this.command.label;
},
@@ -256,8 +250,7 @@ export default defineComponent({
},
},
methods: {
initOutputVars(value) {
const outputVariable = value || this.defaultOutputVariable;
initOutputVars(outputVariable) {
// 初始化完整输出变量名
if (!outputVariable) {
this.simpleOutputVar = "";