fix kkFile预览提出公共方法,加水印

This commit is contained in:
赵霄
2024-01-02 14:39:17 +08:00
parent 01e4d309cc
commit aeda367535
6 changed files with 29 additions and 10 deletions
+2 -2
View File
@@ -54,6 +54,7 @@ import { downloadFile, getFileAccessHttpUrl } from '@/api/manage'
import { getFileInfo } from '@/api/api'
import { previewPdf } from '@/utils/previewPdf'
import Vue from 'vue'
import { kkFilePreview } from '../utils/kkFilePreview'
const FILE_TYPE_ALL = 'all'
const FILE_TYPE_IMG = 'image'
@@ -327,8 +328,7 @@ export default {
return
}
// 其余可预览文件仍使用KKFile进行预览
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
window.open(url)
kkFilePreview(fileFullUrl)
},
handleDownload (file) {
// 下载文件