|
@@ -324,14 +324,20 @@ export default defineComponent({
|
|
|
// 去云练习完整版
|
|
|
e.stopPropagation();
|
|
|
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'
|
|
|
- }/#/detail/${
|
|
|
- item.value.materialMusicId
|
|
|
- }?Authorization=${Authorization}&isHideTitle=true`;
|
|
|
+ // const origin = /(localhost|192)/.test(location.host)
|
|
|
+ // ? 'https://test.gym.lexiaoya.cn'
|
|
|
+ // : location.origin;
|
|
|
+ // const src = `${origin}/${
|
|
|
+ // state.platformType === 'TEACHER' ? 'accompany-teacher' : 'accompany'
|
|
|
+ // }/#/detail/${
|
|
|
+ // item.value.materialMusicId
|
|
|
+ // }?Authorization=${Authorization}&isHideTitle=true`;
|
|
|
+
|
|
|
+ const origin = /(localhost|192)/.test(location.host)
|
|
|
+ ? 'https://test.gym.lexiaoya.cn/'
|
|
|
+ : location.origin;
|
|
|
+ const src = `${origin}/gym-music-score/?id=${item.value.materialMusicId}&Authorization=${Authorization}&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
|
|
|
+
|
|
|
postMessage({
|
|
|
api: 'openAccompanyWebView',
|
|
|
content: {
|