Przeglądaj źródła

Update new-index.tsx

lex 10 miesięcy temu
rodzic
commit
d9c5148f30
1 zmienionych plików z 7 dodań i 7 usunięć
  1. 7 7
      src/tenant/music/music-detail/new-index.tsx

+ 7 - 7
src/tenant/music/music-detail/new-index.tsx

@@ -693,12 +693,12 @@ export default defineComponent({
           staffData.xmlPartList = partList
         }
 
-        // staffData.iframeSrc = `${
-        //   location.origin
-        // }/osmd/index.html?t=${new Date().getTime()}`
-        staffData.iframeSrc = `${location.origin}${
-          location.pathname
-        }osmd/index.html?t=${new Date().getTime()}`
+        staffData.iframeSrc = `${
+          location.origin
+        }/osmd/index.html?t=${new Date().getTime()}`
+        // staffData.iframeSrc = `${location.origin}${
+        //   location.pathname
+        // }osmd/index.html?t=${new Date().getTime()}`
         staffData.musicXml = musicDetail.value?.xmlFileUrl || ''
         const tempList = musicDetail.value?.background || []
         const tempPartList = [] as any
@@ -771,7 +771,7 @@ export default defineComponent({
         return {
           text: item.track + (instrumentName ? `(${instrumentName})` : ''),
           value: index,
-          xmlValue: item.index,
+          xmlValue: index,
           track: item.track
         }
       })