lex 2 年之前
父节点
当前提交
0755deca90

+ 3 - 3
src/views/live-class/index.tsx

@@ -107,9 +107,9 @@ export default defineComponent({
             ? '/api-student/courseGroup/queryPageCourseGroup'
             : '/api-teacher/courseGroup/queryPageCourseGroup'
         // 处理搜索,老师端分享用
-        if (state.platformType === 'TEACHER') {
-          params.myself = false
-        }
+        // if (state.platformType === 'TEACHER') {
+        params.myself = false
+        // }
         const res = await request.post(url, {
           data: {
             ...params

+ 3 - 3
src/views/music/album/index.tsx

@@ -30,9 +30,9 @@ export default defineComponent({
       tempParams.platform =
         state.platformType === 'STUDENT' ? 'ios-student' : 'ios-teacher'
     }
-    if (state.platformType === 'TEACHER') {
-      tempParams.myself = false
-    }
+    // if (state.platformType === 'TEACHER') {
+    tempParams.myself = false
+    // }
     console.log({ ...defauleParams })
     const params = reactive({
       search: (route.query.search as string) || '',

+ 3 - 3
src/views/music/list/index.tsx

@@ -77,9 +77,9 @@ export default defineComponent({
         idAndName: params.search,
         createBy: teacherId
       }
-      if (state.platformType === 'TEACHER') {
-        tempParams.myself = false
-      }
+      // if (state.platformType === 'TEACHER') {
+      tempParams.myself = false
+      // }
 
       try {
         const res = await request.post(`${apiSuffix.value}/music/sheet/list`, {

+ 3 - 3
src/views/music/songbook/album.tsx

@@ -20,9 +20,9 @@ export default defineComponent({
     }
     const apiSuffix =
       tempState.platformType === 'STUDENT' ? '/api-student' : '/api-teacher'
-    if (tempState.platformType === 'TEACHER') {
-      params.myself = false
-    }
+    // if (tempState.platformType === 'TEACHER') {
+    params.myself = false
+    // }
     const { isLoading, state } = useAsyncState(
       request.post(`${apiSuffix}/music/album/list`, {
         data: {

+ 3 - 3
src/views/music/songbook/list.tsx

@@ -23,9 +23,9 @@ export default defineComponent({
     }
     const apiSuffix =
       tempState.platformType === 'STUDENT' ? '/api-student' : '/api-teacher'
-    if (tempState.platformType === 'TEACHER') {
-      params.myself = false
-    }
+    // if (tempState.platformType === 'TEACHER') {
+    params.myself = false
+    // }
     const { isLoading, state } = useAsyncState(
       request.post(`${apiSuffix}/music/sheet/list`, {
         data: {

+ 3 - 3
src/views/video-class/index.tsx

@@ -89,9 +89,9 @@ export default defineComponent({
             ? '/api-student/videoLesson/selectGroup'
             : '/api-teacher/videoLessonGroup/page'
         // 处理搜索,老师端分享用
-        if (state.platformType === 'TEACHER') {
-          params.myself = false
-        }
+        // if (state.platformType === 'TEACHER') {
+        params.myself = false
+        // }
         const res = await request.post(url, {
           data: {
             ...params