|
@@ -39,17 +39,16 @@ export default defineComponent({
|
|
|
const renderSuccess = ref(false);
|
|
|
const Authorization = sessionStorage.getItem('Authorization') || '';
|
|
|
const origin = /(localhost|192)/.test(location.host)
|
|
|
- ? 'https://test.lexiaoya.cn'
|
|
|
+ ? 'https://test.gym.lexiaoya.cn'
|
|
|
: location.origin;
|
|
|
- const query = qs.stringify({
|
|
|
- id: props.music.content,
|
|
|
- modelType: 'practice',
|
|
|
- headerHeight: 32,
|
|
|
- Authorization: Authorization
|
|
|
- });
|
|
|
+
|
|
|
const path =
|
|
|
state.platformType === 'TEACHER' ? '/accompany-teacher/' : '/accompany/';
|
|
|
- const src = `${origin}${path}?` + query;
|
|
|
+ const src =
|
|
|
+ `${origin}${path}?Authorization=${Authorization}` +
|
|
|
+ '#/detail/' +
|
|
|
+ props.music.content +
|
|
|
+ '?part-index=0';
|
|
|
const checkView = () => {
|
|
|
fetch(src)
|
|
|
.then(() => {
|