Explorar el Código

fix: 修复PDF文件点击无法在新窗口打开的问题

tanshanming hace 6 meses
padre
commit
c16bec59a7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/libs/globalFunction/file.js

+ 1 - 1
src/libs/globalFunction/file.js

@@ -358,7 +358,7 @@ const fileFunction = {
 			}
 			//  若当前点击项是pdf
 			if (row.extendName.toLowerCase() === 'pdf') {
-				// window.open(this.getViewFilePath(row), '_blank')
+				window.open(this.getViewFilePath(row), '_blank')
 			}
 			//  若当前点击项是代码或文本文件
 			let codeFileSuffix = row.extendName.toLowerCase()