Browse Source

无知识点无法选择

skyblued 2 years ago
parent
commit
29fe1e33a0
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/views/courseList/index.tsx

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

@@ -63,17 +63,18 @@ export default defineComponent({
     })
 
     const handleClick = async (item: any) => {
-      if (route.query.code === 'select') {
-        console.log('选择课时')
-        setCoursewareDetail(item)
-        return
-      }
       if (!item.knowledgePointList) {
         showConfirmDialog({
           message: '该课件暂无知识点'
         })
         return
       }
+      if (route.query.code === 'select') {
+        console.log('选择课时')
+        setCoursewareDetail(item)
+        return
+      }
+
       if (!item.hasCache) {
         if (browserInfo.isStudent || route.query.isdev) {
           try {