diff --git a/web/js/home_script.js b/web/js/home_script.js index 064200f..595cdad 100644 --- a/web/js/home_script.js +++ b/web/js/home_script.js @@ -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 () {