[update] 企标,搜索中心,企标预览增加判断是否是onlyOffice生成的,是的话预览onlyOffice生成的pdf文件
This commit is contained in:
@@ -205,6 +205,7 @@ export default {
|
|||||||
name: fileInfo.fileName,
|
name: fileInfo.fileName,
|
||||||
status: 'done',
|
status: 'done',
|
||||||
url: fileInfo.url,
|
url: fileInfo.url,
|
||||||
|
pdfId: fileInfo.pdfId,
|
||||||
// response用于下载和预览
|
// response用于下载和预览
|
||||||
response: {
|
response: {
|
||||||
success: true,
|
success: true,
|
||||||
@@ -299,6 +300,7 @@ export default {
|
|||||||
if (!file || !file.url) {
|
if (!file || !file.url) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
console.log(file)
|
||||||
if (file.pdfId) {
|
if (file.pdfId) {
|
||||||
// 说明是onlyOffice生成的
|
// 说明是onlyOffice生成的
|
||||||
const url = previewPdf(file.pdfId)
|
const url = previewPdf(file.pdfId)
|
||||||
|
|||||||
Reference in New Issue
Block a user