Browse Source

修改跳转方式

wenmenghao 1 year ago
parent
commit
9ad9b17c7c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      apps/mobile/src/views/reportAnalysis/reportDownload.vue

+ 4 - 4
apps/mobile/src/views/reportAnalysis/reportDownload.vue

@@ -309,8 +309,8 @@ export default {
             appDownLoadFile(name, types, fileUrl, size)
           })
         } else {
-          // location.href = fileUrl
-          window.open(fileUrl)
+          location.href = fileUrl
+          // window.open(fileUrl)
         }
       } else {
         // fileUrl: 下载地址
@@ -325,8 +325,8 @@ export default {
               }
             })
           } else {
-            window.open(fileUrl)
-            // location.href = fileUrl
+            // window.open(fileUrl)
+            location.href = fileUrl
           }
         } else {
           console.log('获取附件fid失败')