修改预览

This commit is contained in:
haozq 2024-11-18 13:04:36 +08:00
parent 8395a40eaa
commit a86b149129
1 changed files with 3 additions and 1 deletions

View File

@ -181,7 +181,9 @@ function getUrlParam(key) {
// 预览文件
function commonViewFile(params) {
let path = fileUrl + params;
let path = fileUrl + params + '?auth=' + sessionStorage.getItem("gz-token");
// path = fileUrl + params
console.log(path);
let encodePath = encodeURIComponent(useBase64.encode64(path));
window.open(viewFileUrl + encodePath + '&token=' + generateToken());
}