diff --git a/src/components/UploadFile.vue b/src/components/UploadFile.vue index 16862748..a0953fe5 100644 --- a/src/components/UploadFile.vue +++ b/src/components/UploadFile.vue @@ -299,9 +299,9 @@ export default { if (!file || !file.url) { return } - if (file.pdf_id) { + if (file.pdfId) { // 说明是onlyOffice生成的 - const url = previewPdf(file.pdf_id) + const url = previewPdf(file.pdfId) window.open(url) return } diff --git a/src/views/dashboard/search/AdvancedSearch.vue b/src/views/dashboard/search/AdvancedSearch.vue index 82636d8e..3fa85ef8 100644 --- a/src/views/dashboard/search/AdvancedSearch.vue +++ b/src/views/dashboard/search/AdvancedSearch.vue @@ -395,9 +395,9 @@ export default { console.log('seletedFile', file) // 是onlyOffice生成的,预览关联的pdf文件 - if (file.pdf_id) { + if (file.pdfId) { // 说明是onlyOffice生成的 - const url = previewPdf(file.pdf_id) + const url = previewPdf(file.pdfId) window.open(url) return } diff --git a/src/views/dashboard/search/GeneralSearch.vue b/src/views/dashboard/search/GeneralSearch.vue index 9c6f65c3..b26b91c6 100644 --- a/src/views/dashboard/search/GeneralSearch.vue +++ b/src/views/dashboard/search/GeneralSearch.vue @@ -619,9 +619,9 @@ export default { console.log('seletedFile', file) // 是onlyOffice生成的,预览关联的pdf文件 - if (file.pdf_id) { + if (file.pdfId) { // 说明是onlyOffice生成的 - const url = previewPdf(file.pdf_id) + const url = previewPdf(file.pdfId) window.open(url) return } diff --git a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue index 60f41bdd..a34a5d02 100644 --- a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue +++ b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue @@ -829,9 +829,9 @@ export default { console.log('seletedFile', file) // 是onlyOffice生成的,预览关联的pdf文件 - if (file.pdf_id) { + if (file.pdfId) { // 说明是onlyOffice生成的 - const url = previewPdf(file.pdf_id) + const url = previewPdf(file.pdfId) window.open(url) return } diff --git a/src/views/enterpriseStandardLibrary/standard/detail/EnterpriseStandardDetail.vue b/src/views/enterpriseStandardLibrary/standard/detail/EnterpriseStandardDetail.vue index 22d666d7..fd403106 100644 --- a/src/views/enterpriseStandardLibrary/standard/detail/EnterpriseStandardDetail.vue +++ b/src/views/enterpriseStandardLibrary/standard/detail/EnterpriseStandardDetail.vue @@ -287,9 +287,9 @@ export default { if (!file || !file.url) { return } - if (file.pdf_id) { + if (file.pdfId) { // 说明是onlyOffice生成的 - const url = previewPdf(file.pdf_id) + const url = previewPdf(file.pdfId) window.open(url) return }