Parcourir la source

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

tanshanming il y a 6 mois
Parent
commit
c16bec59a7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()