瀏覽代碼

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

tanshanming 6 月之前
父節點
當前提交
c16bec59a7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()