Browse Source

Merge branch 'iteration-20241205'

lex-xin 8 months ago
parent
commit
7dd8d61f23
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/tenant/music/music-detail/new-index.tsx

+ 3 - 4
src/tenant/music/music-detail/new-index.tsx

@@ -643,10 +643,9 @@ export default defineComponent({
       try {
         nextTick(() => {
           if (staffData.musicPdfUrl) {
-            // ${
-            //   location.pathname
-            // }
-            const url = `${location.origin}/pdf/web/viewer-pdf.html?file=${encodeURIComponent(
+            const url = `${location.origin}${
+              location.pathname
+            }pdf/web/viewer-pdf.html?file=${encodeURIComponent(
               staffData.musicPdfUrl
             )}&t=${Date.now()}`