Browse Source

Update index.tsx

lex 1 year ago
parent
commit
4273485d57
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/components/card-preview/listen-modal/index.tsx

+ 5 - 5
src/components/card-preview/listen-modal/index.tsx

@@ -21,12 +21,12 @@ export default defineComponent({
     const iframeRef = ref();
     const isLoaded = ref(false);
 
-    let src = `${vaildMusicScoreUrl()}/instrument/#/view-figner?Authorization=${
+    const src = `${vaildMusicScoreUrl()}/instrument?v=${new Date().getTime()}/#/view-figner?Authorization=${
       userStore.getToken
-    }&code=${props.item.content}&platform=pc&type=listenMode`;
-    if (/(localhost|192)/.test(location.host)) {
-      src = `http://localhost:3001/instrument.html#/view-figner?Authorization=${userStore.getToken}&code=${props.item.content}&platform=pc&type=listenMode`;
-    }
+    }&code=${props.item.content}&platform=pc&type=listenMode&linkSource=class`;
+    // if (/(localhost|192)/.test(location.host)) {
+    //   src = `http://localhost:3001/instrument.html#/view-figner?Authorization=${userStore.getToken}&code=${props.item.content}&platform=pc&type=listenMode`;
+    // }
     // if (props.item.dataJson) {
     //   src += '&dataJson=' + props.item.dataJson;
     // }