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 75ed513c1b..eccc6a6271 100644 --- a/core/core-frontend/src/custom-component/v-query/Select.vue +++ b/core/core-frontend/src/custom-component/v-query/Select.vue @@ -157,7 +157,7 @@ watch( watch( () => config.value.field.id, val => { - console.log('init') + console.log('init', 'config.value.field.id') if (!val) return debounceOptions(1) } @@ -166,6 +166,7 @@ watch( watch( () => config.value.optionValueSource, val => { + console.log('init', 'config.value.optionValueSource') debounceOptions(val) } ) @@ -173,6 +174,7 @@ watch( watch( [() => config.value.checkedFields, () => config.value.checkedFieldsMap], () => { + console.log('init', 'config.value.optionValueSource') debounceOptions(config.value.optionValueSource) }, { @@ -183,11 +185,13 @@ watch( watch( () => config.value.valueSource, () => { - debounceOptions(2) + console.log('init', 'config.value.valueSource') + config.value.optionValueSource === 2 && debounceOptions(2) } ) const setOptions = (num: number) => { + console.log('init', 'setOptions', num, config.value.optionValueSource) if (num !== config.value.optionValueSource) return const { optionValueSource, checkedFieldsMap, checkedFields, field, valueSource } = config.value switch (optionValueSource) {