瀏覽代碼

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(