Browse Source

临时放开pdf下载功能

hanzhen 3 years ago
parent
commit
db92d015ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/static/page/archive/show.html

+ 1 - 1
src/main/resources/static/page/archive/show.html

@@ -177,7 +177,7 @@
                     }
                     for (let i = 0; i < res.data.length; i++) {
                         let item = res.data[i]
-                        let pef_src = 'http://66.1.21.158:8012/onlinePreview?officePreviewType=pdf&disabledownload=true&url=' + encodeURIComponent(Base64.encode('http://66.1.21.158:9091/' + item.filePath + '/' + item.fileName))
+                        let pef_src = 'http://66.1.21.158:8012/onlinePreview?officePreviewType=pdf&disabledownload=false&url=' + encodeURIComponent(Base64.encode('http://66.1.21.158:9091/' + item.filePath + '/' + item.fileName))
                         if (i == 0) {
                             html += '<li class="layui-bg-green"><a title="' + (i + 1) + '、' + (item.jnml ? item.jnml : '档案文件') + '" pdf_src="' + pef_src + '">' + (i + 1) + '、' + (item.jnml ? item.jnml : '档案文件') + '</a></li>'
                             // let pef_src = 'http://66.1.21.158:8012/onlinePreview?officePreviewType=pdf&url=' + encodeURIComponent(Base64.encode('http://fit.zju.edu.cn/_upload/article/files/42/e5/4ad6f5a54563869e08dea8066b3d/df728b53-f325-4073-9057-87ff3d75b6ca.pdf'))