Merge branch 'main' of http://192.168.0.56:3000/cwchen/gz_gqj_web
This commit is contained in:
commit
33a0b5cce1
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue