Browse Source

fix(文件预览):文件预览下载

sufan 3 months ago
parent
commit
009096151f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Upload/index.vue

+ 1 - 1
src/components/Upload/index.vue

@@ -453,7 +453,7 @@ export default {
         const newName = `预览图片${fileType || type}`
         const newName = `预览图片${fileType || type}`
         window.open(`#/perview?fileId=${idNum}&absolutePath=${absolutePath}&name=${newName}`)
         window.open(`#/perview?fileId=${idNum}&absolutePath=${absolutePath}&name=${newName}`)
       } else {
       } else {
-        window.open(`${process.env.VUE_APP_BASE_API}/fileStorage/preview?fileId=${idNum}&resource=${fileType ? 0 : 1}`)
+        window.open(`${process.env.VUE_APP_BASE_API}/fileStorage/preview?fileId=${idNum}&resource=${fileType ? 0 : 1}#toolbar=0&navpanes=0&scrollbar=0`)
       }
       }
     },
     },
     downloadClick(row) {
     downloadClick(row) {