|
@@ -77,9 +77,13 @@ export default defineComponent({
|
|
|
|
|
|
const Authorization = storage.get(ACCESS_TOKEN);
|
|
|
// const src = `${location.origin}/classroom-app/#/tempo-practice?dataJson=${props.dataJson}&Authorization=${Authorization}&modeType=courseware`;
|
|
|
- const src = `${vaildMusicScoreUrl()}/instrument/#/view-figner?Authorization=${Authorization}&code=${
|
|
|
+ let src = `${vaildMusicScoreUrl()}/instrument/#/view-figner?Authorization=${Authorization}&code=${
|
|
|
props.item.content
|
|
|
- }&type=listenMode`;
|
|
|
+ }&type=listenMode&linkSource=class`;
|
|
|
+ if (/(localhost|192)/.test(location.host)) {
|
|
|
+ src = `http://localhost:3000/instrument.html#/view-figner?Authorization=${Authorization}&code=${props.item.content}&type=listenMode&linkSource=class`;
|
|
|
+ }
|
|
|
+
|
|
|
return () => (
|
|
|
<div class={styles.tempoItem}>
|
|
|
<iframe
|