Commit 5ffd7db8 by panda7 Committed by GitHub

fix: the initial value echo for the check-button-group (#6029)

Co-authored-by: sqchen <9110848@qq.com>
1 parent 14377705
...@@ -41,7 +41,6 @@ watch( ...@@ -41,7 +41,6 @@ watch(
innerValue.value.length > 0 ? innerValue.value[0] : undefined; innerValue.value.length > 0 ? innerValue.value[0] : undefined;
} }
}, },
{ immediate: true },
); );
watch( watch(
...@@ -60,7 +59,7 @@ watch( ...@@ -60,7 +59,7 @@ watch(
innerValue.value = val === undefined ? [] : [val as ValueType]; innerValue.value = val === undefined ? [] : [val as ValueType];
} }
}, },
{ deep: true }, { deep: true, immediate: true },
); );
async function onBtnClick(value: ValueType) { async function onBtnClick(value: ValueType) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!