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

Co-authored-by: sqchen <9110848@qq.com>
This commit is contained in:
panda7
2025-04-25 08:35:03 +08:00
committed by Netfan
parent 1faa52335c
commit e320311128

View File

@@ -41,7 +41,6 @@ watch(
innerValue.value.length > 0 ? innerValue.value[0] : undefined;
}
},
{ immediate: true },
);
watch(
@@ -60,7 +59,7 @@ watch(
innerValue.value = val === undefined ? [] : [val as ValueType];
}
},
{ deep: true },
{ deep: true, immediate: true },
);
async function onBtnClick(value: ValueType) {