소스 검색

Update index.tsx

lex 1 년 전
부모
커밋
e0e85d4918
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/views/courseList/index.tsx

+ 5 - 1
src/views/courseList/index.tsx

@@ -90,7 +90,11 @@ export default defineComponent({
             });
           });
 
-          const _list = await checkCoursewareCache(res.data);
+          // 由于ios没有对应api
+          const _list =
+            state.platformType === 'STUDENT'
+              ? await checkCoursewareCache(res.data)
+              : [];
           data.list = browserInfo.isApp
             ? res.data.map((item: any) => {
                 const _item = _list.find(