调整压缩包 获取路径方法

调整压缩包 获取路径方法

Signed-off-by: 高雄 <admin@cxcp.com>
This commit is contained in:
高雄 2024-03-06 07:35:37 +00:00 committed by Gitee
parent 7dcd225cea
commit e79c53156b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 4 deletions

View File

@ -49,17 +49,15 @@
onClick: chooseNode,
}
};
function chooseNode(event, treeId, treeNode) {
if (!treeNode.isParent) {
var path = '${baseUrl}' + treeNode.id + "?kkCompressfileKey=" + '${fileTree}';
var path = '${baseUrl}' + treeNode.id + "?kkCompressfileKey=" + '${fileTree}'+"&kkCompressfilepath=" + treeNode.id+"&fullfilename="+treeNode.name;
location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path));
}
}
$(document).ready(function () {
var url = '${fileTree}';
$.ajax({
$.ajax({
type: "get",
url: "${baseUrl}directory?urls="+encodeURIComponent(Base64.encode(url)),
success: function (res) {