single-download-btn按钮功能实现

This commit is contained in:
Chenx221 2024-02-15 14:40:16 +08:00
parent fed77cf43e
commit db903bd4b3
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -54,8 +54,8 @@ $(document).on('click', '.new-folder-btn', function () {
})
$(document).on('click', '.single-download-btn', function () {
console.log('单文件下载按钮被点击');
// 在这里添加你的代码
var relativePath = $('.select-item:checked').first().data('relativePath');
window.location.href = 'index.php?r=home%2Fdownload&relativePath=' + encodeURIComponent(relativePath);
});
$(document).on('click', '.batch-zip-download-btn', function () {