Browse Source

Merge branch 'feature-tianyong'

TIANYONG 3 months ago
parent
commit
e07182bae9
2 changed files with 4 additions and 2 deletions
  1. 2 1
      src/views/creation/index-share.tsx
  2. 2 1
      src/views/creation/index.tsx

+ 2 - 1
src/views/creation/index-share.tsx

@@ -59,6 +59,7 @@ import "plyr/dist/plyr.css";
 import Plyr from "plyr";
 import audioVisualDraw from "./audioVisualDraw"
 import Loading from './loading';
+import { state as originState } from '@/state'
 
 export default defineComponent({
   name: 'creation-detail',
@@ -447,7 +448,7 @@ export default defineComponent({
     });
     // 初始化五线谱
     function initStaff(){
-      const systemType = isTeacher ? 'teacher' : 'student'
+      const systemType = originState.platformType === 'TEACHER' || isTeacher ? 'teacher' : 'student'
       const src = `/klx-music-score/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}&systemType=${systemType}`;
       // const src = `http://192.168.3.68:3000/instrument.html#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
       staffState.staffSrc = src

+ 2 - 1
src/views/creation/index.tsx

@@ -38,6 +38,7 @@ import svipIcon from './images/svip_icon.png';
 import tyBg from './images/ty.png';
 import TextEllipsis from './text-ellipsis/index';
 import Loading from './loading';
+import { state as originState } from '@/state'
 
 export default defineComponent({
   name: 'creation-detail',
@@ -424,7 +425,7 @@ export default defineComponent({
     }
     // 初始化五线谱
     function initStaff(){
-      const systemType = isTeacher ? 'teacher' : 'student'
+      const systemType = originState.platformType === 'TEACHER' || isTeacher ? 'teacher' : 'student'
       const src = `/klx-music-score/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}&systemType=${systemType}`;
       // const src = `http://192.168.3.68:3000/instrument.html#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
       staffState.staffSrc = src