mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-20 10:55:43 +08:00
修复切换子命令时,参数值被错误置为null的bug
This commit is contained in:
@@ -98,6 +98,8 @@ export default defineComponent({
|
||||
|
||||
// 使用新选择的函数独有配置的默认值
|
||||
this.getSelectSubCommand(value)?.config?.forEach((config, index) => {
|
||||
// 有默认值时才更新
|
||||
if (!config.defaultValue) return;
|
||||
newArgvs[this.commonConfig.length + index] = config.defaultValue;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user