소스 검색

修改传参默认声部

lex 10 달 전
부모
커밋
8210a294b7
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/tenant/music/train-tool/index.tsx

+ 6 - 0
src/tenant/music/train-tool/index.tsx

@@ -202,6 +202,12 @@ export default defineComponent({
         albumId: state.details.id || null,
         subjectType: state.activeTab,
         ...params
+      } as any
+
+      // 老师端默认查询声部
+      if (baseState.platformType === 'TEACHER') {
+        const users = baseState.user.data
+        tempParams.subjectId = users.defaultSubject || null
       }
 
       try {