接口调试完毕

This commit is contained in:
kron
2025-08-05 11:51:09 +08:00
parent 05f0c14920
commit 414bedf69f
7 changed files with 116 additions and 50 deletions

View File

@@ -65,7 +65,10 @@ const onMeterChange = (e) => {
watch(
() => props.value,
(newValue) => {
if (!newValue) return;
if (!newValue) {
selectedIndex.value = -1;
return;
}
if (props.itemIndex === 0 || props.itemIndex === 2) {
data.value.forEach((item, index) => {
if (item.name === newValue) {
@@ -93,7 +96,6 @@ onMounted(() => {
} else if (props.itemIndex === 2) {
data.value = config.targetOption;
}
// props.onSelect(props.itemIndex, config[props.itemIndex]);
}
});
</script>