diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index a4d34f7..9d90dcd 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -2518,6 +2518,11 @@ Bus.$emit('onAddAudio',row, this.audioCoverUrl) return } + if(row.suffix === 'pdf'){ + // pdf文件 + window.open(`${process.env.VUE_APP_BASE_FILE_API}/preview/${row.name}?jmal-token=${this.$store.state.user.token}&fileIds=${row.id}`, '_blank') + return + } if(suffix.compressedFile.includes(row.suffix)){ // 压缩文件 this.openCompressionVisible = true @@ -2542,7 +2547,7 @@ this.notPreviewDialogVisible = false }, downLaod(file){ - window.open(`${process.env.VUE_APP_BASE_FILE_API}preview/${file.name}?jmal-token=${this.$store.state.user.token}&fileIds=${file.id}`, '_self') + window.open(`${process.env.VUE_APP_BASE_FILE_API}/preview/${file.name}?jmal-token=${this.$store.state.user.token}&fileIds=${file.id}`, '_self') }, } } diff --git a/src/main.js b/src/main.js index b44fc7c..a89acff 100644 --- a/src/main.js +++ b/src/main.js @@ -19,8 +19,8 @@ import { Popup,Search, Button, Cell, CellGroup, Image, List, PullRefresh, SwipeC // ant-design-vue -import { Tree } from 'ant-design-vue'; -Vue.use(Tree) +// import { Tree } from 'ant-design-vue'; +// Vue.use(Tree) // mavonEditor import mavonEditor from 'mavon-editor'