소스 검색

Update index.tsx

lex 1 년 전
부모
커밋
9f2440655c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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,