From c7a16e82c530fb4b7a476d4f60f086a212fecc5c Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Fri, 16 Feb 2024 11:55:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/js/home_script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/js/home_script.js b/web/js/home_script.js index 3fdc167..c7acaa6 100644 --- a/web/js/home_script.js +++ b/web/js/home_script.js @@ -120,8 +120,8 @@ $(document).on('click', '.unzip-btn', function () { }); $(document).on('click', '.single-rename-btn', function () { - console.log('重命名按钮被点击'); - // 在这里添加你的代码 + var relativePath = $('.select-item:checked').first().data('relativePath'); + $('.rename-btn[value="' + relativePath + '"]').trigger('click'); }); $(document).on('click', '.batch-copy-btn', function () {