zhangjie 2 lat temu
rodzic
commit
9bb330b3d2
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/modules/client/views/TaskManage.vue

+ 2 - 2
src/modules/client/views/TaskManage.vue

@@ -109,7 +109,7 @@
               扫描
             </el-button>
             <el-button
-              v-if="scope.row.scanCount && scope.row.clientScanCount"
+              v-if="!scope.row.scanCount && scope.row.clientScanCount"
               class="btn-danger"
               type="text"
               @click="toClean(scope.row)"
@@ -286,7 +286,7 @@ export default {
       row.enable = !row.enable;
     },
     async toClean(row) {
-      if (!row.clientScanCount || !row.scanCount) return;
+      if (!(row.clientScanCount && !row.scanCount)) return;
 
       this.$parent.$parent.stopUpload();