Enhance initialIndex evaluation

This commit is contained in:
Bubka 2023-11-17 19:54:15 +01:00
parent dc03e8b1e5
commit bfe75069a4

View File

@ -34,9 +34,9 @@
}
onMounted(() => {
if (props.initialIndex != null) {
turnOn(props.initialIndex)
}
if (! isNaN(props.initialIndex)) {
turnOn(props.initialIndex)
}
})
defineExpose({