!147 压缩包预览报错

Merge pull request !147 from xiaoyinkuangxue/master
This commit is contained in:
陈精华
2023-06-19 01:59:38 +00:00
committed by Gitee

View File

@@ -51,8 +51,10 @@
};
function chooseNode(event, treeId, treeNode) {
var path = '${baseUrl}' + treeNode.id +"?fileKey="+'${fileName}';
location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path));
if (!treeNode.isParent) {
var path = '${baseUrl}' + treeNode.id + "?fileKey=" + '${fileName}';
location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path));
}
}
$(document).ready(function () {