|
@@ -521,17 +521,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(
|
|
@@ -539,8 +539,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)
|