Explorar el Código

Merge branch 'iteraion-20240914-pdf'

lex-xin hace 9 meses
padre
commit
04c16451c8
Se han modificado 1 ficheros con 11 adiciones y 11 borrados
  1. 11 11
      src/tenant/music/music-detail/new-index.tsx

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

@@ -522,17 +522,17 @@ export default defineComponent({
       try {
         nextTick(() => {
           if (musicPdfUrl.value) {
-            // const url = `${location.origin}${
-            //     location.pathname
-            //   }pdf/web/viewer-pdf.html?file=${encodeURIComponent(
-            //     musicPdfUrl.value
-            //   )}&t=${Date.now()}`
+            const url = `${location.origin}${
+                location.pathname
+              }pdf/web/viewer-pdf.html?file=${encodeURIComponent(
+                musicPdfUrl.value
+              )}&t=${Date.now()}`
 
 
-              const url = '/pdf/web/viewer-pdf.html?file=' +
-                encodeURIComponent(musicPdfUrl.value) +
-                '&t=' +
-                Date.now()
+              // const url = '/pdf/web/viewer-pdf.html?file=' +
+              //   encodeURIComponent(musicPdfUrl.value) +
+              //   '&t=' +
+              //   Date.now()
             
             const iframeRef = document.querySelector('#staffIframeRef') as any
             iframeRef.contentWindow.location.replace(
@@ -540,8 +540,8 @@ export default defineComponent({
             )
             staffData.iframeSrc = url
           } else {
-            // const url = `${location.origin}${location.pathname}osmd/index.html`
-            const url = `${location.origin}/osmd/index.html`
+            const url = `${location.origin}${location.pathname}osmd/index.html`
+            // const url = `${location.origin}/osmd/index.html`
 
             const iframeRef = document.querySelector('#staffIframeRef') as any
             iframeRef.contentWindow.location.replace(url)