lex 1 год назад
Родитель
Сommit
ff2f66144e

+ 1 - 1
src/student/share-active/track-review-activity/index.tsx

@@ -299,7 +299,7 @@ export default defineComponent({
           query: {
             id: selectMusic.musicSheetId,
             behaviorId: this.behaviorId,
-            client: browserInfo.isTeacher ? 'teacher' : 'student',
+            client: browserInfo.isStudent ? 'student' : 'teacher',
             setting: JSON.stringify({
               mode: 'EVALUATING',
               resets: ['SPEED'],

+ 6 - 2
src/teacher/share-page/share-music-sheet/index.tsx

@@ -59,10 +59,14 @@ export default defineComponent({
         url: location.origin + '/accompany',
         query: {
           id: this.id,
-          recomUserId: this.$route.query.userType && this.$route.query.userType == 'STUDENT' ? '' : this.recomUserId,
+          recomUserId:
+            this.$route.query.userType &&
+            this.$route.query.userType == 'STUDENT'
+              ? ''
+              : this.recomUserId,
           activityId: this.activityId,
           discounts: this.discounts,
-          client: browserInfo.isTeacher ? 'teacher' : 'student',
+          client: browserInfo.isStudent ? 'student' : 'teacher',
           behaviorId
         }
       })