From 95ef6938814efcfffaf8eabcef3413d406c7c09c Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Sat, 17 Feb 2024 16:53:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E5=8A=9F=E8=83=BD=E6=94=B9=E8=BF=9B=20=E7=8E=B0?= =?UTF-8?q?=E5=9C=A8=E5=A4=8D=E5=88=B6=E7=9A=84=E9=93=BE=E6=8E=A5=E8=87=AA?= =?UTF-8?q?=E5=B8=A6=E8=AE=BF=E9=97=AE=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/js/share_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/js/share_view.js b/web/js/share_view.js index 42fc274..c085ab0 100644 --- a/web/js/share_view.js +++ b/web/js/share_view.js @@ -1,7 +1,8 @@ $(document).ready(function() { $('#copy-link-button').click(function() { var shareId = $('table.detail-view tbody tr:first-child td').text(); - var shareLink = window.location.origin + '/index.php?r=share%2Faccess&share_id=' + shareId; + var accessCode = $('table.detail-view tbody tr:nth-child(3) td').text(); // 获取访问密码 + var shareLink = window.location.origin + '/index.php?r=share%2Faccess&share_id=' + shareId + '&access_code=' + accessCode; // 将访问密码添加到分享链接中 navigator.clipboard.writeText(shareLink).then(function() { alert('分享链接已复制到剪贴板'); }).catch(function(error) {