mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-08-10 23:49:38 +08:00
修复切换子命令时,参数值被错误置为null的bug
This commit is contained in:
parent
d70a04f549
commit
0e43a3eac8
@ -98,6 +98,8 @@ export default defineComponent({
|
|||||||
|
|
||||||
// 使用新选择的函数独有配置的默认值
|
// 使用新选择的函数独有配置的默认值
|
||||||
this.getSelectSubCommand(value)?.config?.forEach((config, index) => {
|
this.getSelectSubCommand(value)?.config?.forEach((config, index) => {
|
||||||
|
// 有默认值时才更新
|
||||||
|
if (!config.defaultValue) return;
|
||||||
newArgvs[this.commonConfig.length + index] = config.defaultValue;
|
newArgvs[this.commonConfig.length + index] = config.defaultValue;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ export default defineComponent({
|
|||||||
computed: {
|
computed: {
|
||||||
isString: {
|
isString: {
|
||||||
get() {
|
get() {
|
||||||
return this.modelValue.isString;
|
return this.modelValue?.isString;
|
||||||
},
|
},
|
||||||
set(value) {
|
set(value) {
|
||||||
this.$emit("update:modelValue", {
|
this.$emit("update:modelValue", {
|
||||||
@ -225,7 +225,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
inputValue: {
|
inputValue: {
|
||||||
get() {
|
get() {
|
||||||
return this.modelValue.value;
|
return this.modelValue?.value;
|
||||||
},
|
},
|
||||||
set(value) {
|
set(value) {
|
||||||
this.$emit("update:modelValue", {
|
this.$emit("update:modelValue", {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user