Browse Source

feat(文件预览):文件预览

sufan 7 months ago
parent
commit
edbc1623a9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/components/Upload/index.vue

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

@@ -441,6 +441,7 @@ export default {
         absolutePath = file.absolutePath
         absolutePath = file.absolutePath
         type = file.type
         type = file.type
       }
       }
+      // window.open(`#/perview?fileId=${idNum}&name=${name}&absolutePath=${absolutePath}`)
       const imgType = ['.jpg', '.png', '.jpeg', '.gif', '.bmp']
       const imgType = ['.jpg', '.png', '.jpeg', '.gif', '.bmp']
       if (imgType.includes(type.toLowerCase())) {
       if (imgType.includes(type.toLowerCase())) {
         window.open(`#/perview?fileId=${idNum}&name=${name}&absolutePath=${absolutePath}`)
         window.open(`#/perview?fileId=${idNum}&name=${name}&absolutePath=${absolutePath}`)