소스 검색

feat: 可见光转红外对接完成

WANGKANG 8 달 전
부모
커밋
92844ab9dd
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/views/demo/toInfrared/index.vue

+ 5 - 1
src/views/demo/toInfrared/index.vue

@@ -159,7 +159,11 @@ const stopToInfrared = async (params: any) => {
   proTable.value?.getTableList()
 }
 const dowloadToInfrared = async (params: any) => {
-  await useDownload(dowloadToInfraredApi, params.name, params.id, true, '.zip')
+  if (params.type == AlgorithmType2['训练']) {
+    await useDownload(dowloadToInfraredApi, params.name, params.id, true, '.pt')
+  } else if (params.type == AlgorithmType2['预测/推理']) {
+    await useDownload(dowloadToInfraredApi, params.name, params.id, true, '.zip')
+  }
 }
 
 const openStartDialog = async (row: any) => {