|
@@ -270,9 +270,10 @@ export default defineComponent({
|
|
|
// console.log(1111,notes)
|
|
|
for (const note of notes) {
|
|
|
const idx = note.musicalNotesIndex !== undefined ? note.musicalNotesIndex : note.index;
|
|
|
- const active = allNote.value.find((item: any) => item.i === idx);
|
|
|
+ const active = detailData.isNewReport ? allNote.value.find((item: any) => item.i === idx) : allNote.value[idx];
|
|
|
setTimeout(() => {
|
|
|
- if (useedid.value.includes(active.id)) {
|
|
|
+ if (!active?.id) return;
|
|
|
+ if (active?.id && useedid.value.includes(active?.id)) {
|
|
|
return;
|
|
|
}
|
|
|
useedid.value.push(active.id);
|