Explorar o código

1.PDF预览优化

liziliang hai 1 semana
pai
achega
a534ef2a0f
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/views/base/document/index.vue

+ 1 - 2
src/views/base/document/index.vue

@@ -90,9 +90,8 @@ const testFiles = () => {
 };
 const PDFDrawerViewRef = ref(null);
 const toShowPDF = (row) => {
-  let url = null;
+  let url = '';
   if (row.sourceType == 1) {
-    return row.filePath;
     url = url + row.pdfPath;
   } else if (row.sourceType == 2) {
     url = url + filePath + row.filePath;