|
@@ -21,28 +21,12 @@ export default defineComponent({
|
|
|
const iframeRef = ref();
|
|
|
const isLoaded = ref(false);
|
|
|
|
|
|
- // const src = `${vaildMusicScoreUrl()}/instrument/#/view-figner?Authorization=${
|
|
|
- // userStore.getToken
|
|
|
- // }&code=${item.code}&platform=pc&type=listenMode`;
|
|
|
- // // const src = `http://192.168.3.220:3000/instrument.html#/view-figner?Authorization=${userStore.getToken}&code=${item.code}`;
|
|
|
- // if (window.matchMedia('(display-mode: standalone)').matches) {
|
|
|
- // state.application = window.matchMedia(
|
|
|
- // '(display-mode: standalone)'
|
|
|
- // ).matches;
|
|
|
- // forms.previewModal = true;
|
|
|
- // forms.previewParams.src = src + '&matchMedia=1';
|
|
|
- // } else {
|
|
|
- // window.open(src);
|
|
|
- // }
|
|
|
-
|
|
|
- const src = `${vaildMusicScoreUrl()}/instrument/#/view-figner?Authorization=${
|
|
|
+ let src = `${vaildMusicScoreUrl()}/instrument/#/view-figner?Authorization=${
|
|
|
userStore.getToken
|
|
|
}&code=${props.item.content}&platform=pc&type=listenMode`;
|
|
|
- // if (/(localhost|192)/.test(location.host)) {
|
|
|
- // src = `http://localhost:9002/#/tempo-practice?v=${Date.now()}&Authorization=${
|
|
|
- // userStore.getToken
|
|
|
- // }&platform=modal`;
|
|
|
- // }
|
|
|
+ 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;
|
|
|
// }
|