|
@@ -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;
|
|
|
// }
|
|
@@ -35,7 +35,10 @@ export default defineComponent({
|
|
|
() => props.activeStatus,
|
|
|
() => {
|
|
|
if (!props.activeStatus) {
|
|
|
- iframeRef.value.contentWindow?.postMessage({ api: 'resetPlay' }, '*');
|
|
|
+ iframeRef.value.contentWindow?.postMessage(
|
|
|
+ { api: 'resetPlay', data: { code: props.item.content } },
|
|
|
+ '*'
|
|
|
+ );
|
|
|
}
|
|
|
}
|
|
|
);
|