diff --git a/core/core-frontend/src/custom-component/v-query/Component.vue b/core/core-frontend/src/custom-component/v-query/Component.vue index 7271cb437d..82c6a6f0ce 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -389,7 +389,7 @@ const autoStyle = computed(() => { + diff --git a/core/core-frontend/src/custom-component/v-query/Select.vue b/core/core-frontend/src/custom-component/v-query/Select.vue index 77ee7ecb1e..4cea917edd 100644 --- a/core/core-frontend/src/custom-component/v-query/Select.vue +++ b/core/core-frontend/src/custom-component/v-query/Select.vue @@ -334,15 +334,19 @@ watch( watch( () => config.value.optionValueSource, - val => { - debounceOptions(val) + (valNew, newOld) => { + if ([valNew, newOld].includes(2)) { + selectValue.value = Array.isArray(selectValue.value) ? [] : undefined + config.value.selectValue = cloneDeep(selectValue.value) + config.value.defaultValue = cloneDeep(selectValue.value) + } + debounceOptions(valNew) } ) watch( [() => config.value.checkedFields, () => config.value.checkedFieldsMap], () => { - if (!props.isConfig) return debounceOptions(config.value.optionValueSource) }, {