Browse Source

Update index.tsx

lex 1 year ago
parent
commit
9f2440655c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/courseList/index.tsx

+ 3 - 0
src/views/courseList/index.tsx

@@ -173,6 +173,8 @@ export default defineComponent({
         return
       }
 
+      // 有正在上传中的
+      if (item.downloadStatus === 1) return
       if (!item.hasCache) {
         const hasFree = String(item.accessScope) === '0'
         if (!hasFree) {
@@ -419,6 +421,7 @@ export default defineComponent({
                                     </Button>
                                   ) : (
                                     <Button
+                                      disabled={item.downloadStatus === 1 ? true : false}
                                       class={[
                                         styles.baseBtn,
                                         isLock ? styles.disable : styles.down,