|
@@ -37,18 +37,19 @@ export default defineComponent({
|
|
|
const renderError = ref(false)
|
|
|
const renderSuccess = ref(false)
|
|
|
const Authorization = sessionStorage.getItem('Authorization') || ''
|
|
|
- const origin = /(localhost|192)/.test(location.host)
|
|
|
- ? 'https://test.colexiu.com'
|
|
|
- : location.origin
|
|
|
- const query = qs.stringify({
|
|
|
- t: +new Date(),
|
|
|
- id: props.music.content,
|
|
|
- Authorization: Authorization,
|
|
|
- isHideBack: 'true',
|
|
|
- limitModel: 'practice' // 只显示练习模式
|
|
|
- })
|
|
|
|
|
|
- const src = `${origin}/accompany/?` + query
|
|
|
+ const musicScorePath = "/klx-music-score/";
|
|
|
+ const src = qs.stringifyUrl({
|
|
|
+ url: location.origin + musicScorePath,
|
|
|
+ query: {
|
|
|
+ t: +new Date(),
|
|
|
+ id: props.music.content,
|
|
|
+ Authorization: Authorization,
|
|
|
+ isHideBack: "true",
|
|
|
+ limitModel: 'practice', // 只显示练习模式
|
|
|
+ systemType: browserInfo.isStudent ? 'student' : 'teacher',
|
|
|
+ }
|
|
|
+ })
|
|
|
const checkView = () => {
|
|
|
fetch(src)
|
|
|
.then(() => {
|