修改预览
This commit is contained in:
parent
8395a40eaa
commit
a86b149129
|
|
@ -181,7 +181,9 @@ function getUrlParam(key) {
|
||||||
|
|
||||||
// 预览文件
|
// 预览文件
|
||||||
function commonViewFile(params) {
|
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));
|
let encodePath = encodeURIComponent(useBase64.encode64(path));
|
||||||
window.open(viewFileUrl + encodePath + '&token=' + generateToken());
|
window.open(viewFileUrl + encodePath + '&token=' + generateToken());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue