|
@@ -15,15 +15,19 @@ export default defineComponent({
|
|
|
const userStore = useUserStore();
|
|
|
const iframeRef = ref();
|
|
|
const isLoaded = ref(false);
|
|
|
- const origin = /(localhost|192)/.test(location.host)
|
|
|
- ? 'http://localhost:9002'
|
|
|
- : location.origin;
|
|
|
- // const src = `${origin}/classroom-app/#/tempo-practice?v=${+new Date()}&platform=modal&dataJson=${
|
|
|
- // props.item.dataJson
|
|
|
- // }&Authorization=${userStore.getToken}`;
|
|
|
- const src = `${origin}/#/tempo-practice?v=${+new Date()}&platform=modal&dataJson=${
|
|
|
- props.item.dataJson
|
|
|
- }&Authorization=${userStore.getToken}`;
|
|
|
+ // const origin = /(localhost|192)/.test(location.host)
|
|
|
+ // ? 'http://localhost:9002'
|
|
|
+ // : location.origin;
|
|
|
+
|
|
|
+ let src = `${origin}/classroom-app/#/tempo-practice?v=${Date.now()}&Authorization=${
|
|
|
+ userStore.getToken
|
|
|
+ }&platform=modal`;
|
|
|
+ if (/(localhost|192)/.test(location.host)) {
|
|
|
+ src = `http://localhost:9002/#/tempo-practice?v=${Date.now()}&Authorization=${
|
|
|
+ userStore.getToken
|
|
|
+ }&platform=modal`;
|
|
|
+ }
|
|
|
+
|
|
|
return () => (
|
|
|
<div class={styles.musicScore}>
|
|
|
<iframe
|