From ea3a94b335de1e4dd7bd3b55dd196200d583ccda Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Sun, 28 Apr 2024 14:53:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=AC=E5=85=B1=E9=93=BE=E6=8E=A5bug?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/public/link.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/frontend/public/link.html b/core/frontend/public/link.html index a910ddbc06..7f0e51ca94 100644 --- a/core/frontend/public/link.html +++ b/core/frontend/public/link.html @@ -21,7 +21,6 @@ } else { vars = query.split('&') } - console.log('document.cookie', document.cookie, query, variable); for (var i = 0; i < vars.length; i++) { const pair = vars[i].split('=') if (pair[0].trim() === variable) { @@ -38,14 +37,18 @@ const fromLink = getQueryVariable('fromLink') const ticket = getQueryVariable('ticket') const baseUrl = window.location.pathname.replace('link.html', '') + console.log('encodeURIComponent(link)', encodeURIComponent(link)); + console.log('link(link)', link); let url = baseUrl + "#/delink?link=" + encodeURIComponent(link) if (terminal) { url += '&terminal=' + terminal } if (user) { + console.log('user(link)', encodeURIComponent(user)); url += '&user=' + encodeURIComponent(user) } if (attachParams) { + console.log('attachParams(link)', encodeURIComponent(attachParams)); url += '&attachParams=' + encodeURIComponent(attachParams) } if (fromLink) {