增加pdf文件的预览
This commit is contained in:
parent
414a43c4a1
commit
73eb7fccf6
@ -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')
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user