-
@@ -135,6 +107,10 @@ const handleDelete = (index: number) => {
props.collection.audios.splice(index, 1)
}
+const updateAudiosIndex = () => {
+ props.collection.audios = props.collection.audios.map((v, i) => ({ ...v, index: i }))
+}
+
const emit = defineEmits<{
exit: []
deleteSelf: []
@@ -144,6 +120,7 @@ const emit = defineEmits<{