Przeglądaj źródła

1.PDF预览优化

liziliang 1 tydzień temu
rodzic
commit
a534ef2a0f
1 zmienionych plików z 1 dodań i 2 usunięć
  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;