Explorar o código

修改传参默认声部

lex hai 10 meses
pai
achega
8210a294b7
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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 {