Kaynağa Gözat

feat(组件): 修改bug

tangning 2 yıl önce
ebeveyn
işleme
2492060636
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      src/views/account/product/index.vue

+ 2 - 1
src/views/account/product/index.vue

@@ -236,7 +236,7 @@
 
         checkDownLoad({ num: record.num }).then((res) => {
           console.log(res);
-          if (res.downloadStatus == 0) {
+          if (res.downloadStatus!= 3) {
             // 未下载过,需要打包
             sceneDownload({ num: record.num }).then((downres) => {
               console.log(downres);
@@ -260,6 +260,7 @@
               }
             });
           } else {
+            window.open(res.downloadUrl);
           }
         });
       }