|
@@ -38,14 +38,19 @@ export default defineComponent({
|
|
const renderError = ref(false);
|
|
const renderError = ref(false);
|
|
const renderSuccess = ref(false);
|
|
const renderSuccess = ref(false);
|
|
const Authorization = sessionStorage.getItem('Authorization') || '';
|
|
const Authorization = sessionStorage.getItem('Authorization') || '';
|
|
|
|
+ // const origin = /(localhost|192)/.test(location.host)
|
|
|
|
+ // ? 'https://test.gym.lexiaoya.cn'
|
|
|
|
+ // : location.origin;
|
|
|
|
+ // const src = `${origin}/${
|
|
|
|
+ // state.platformType === 'TEACHER' ? 'accompany-teacher' : 'accompany'
|
|
|
|
+ // }/?Authorization=${Authorization}&liveConfig=1#/detail/${
|
|
|
|
+ // props.music.content
|
|
|
|
+ // }?isHideBack=true`;
|
|
|
|
+
|
|
const origin = /(localhost|192)/.test(location.host)
|
|
const origin = /(localhost|192)/.test(location.host)
|
|
- ? 'https://test.gym.lexiaoya.cn'
|
|
|
|
- : location.origin;
|
|
|
|
- const src = `${origin}/${
|
|
|
|
- state.platformType === 'TEACHER' ? 'accompany-teacher' : 'accompany'
|
|
|
|
- }/?Authorization=${Authorization}&liveConfig=1#/detail/${
|
|
|
|
- props.music.content
|
|
|
|
- }?isHideBack=true`;
|
|
|
|
|
|
+ ? 'https://test.gym.lexiaoya.cn/'
|
|
|
|
+ : location.origin;
|
|
|
|
+ const src = `${origin}/gym-music-score/?id=${props.music.content}&Authorization=${Authorization}&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
|
|
|
|
|
|
const checkView = () => {
|
|
const checkView = () => {
|
|
fetch(src)
|
|
fetch(src)
|