From 7b5cedafe4823d5033bbe975da5bde271a30458b Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 30 Apr 2025 11:51:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E8=AE=BF=E9=97=AE=E5=B8=A6=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E7=9A=84=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5=E9=94=99=E8=AF=AF?= =?UTF-8?q?=20#15961?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/share/link/pwd.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/core-frontend/src/views/share/link/pwd.vue b/core/core-frontend/src/views/share/link/pwd.vue index 9760d8dff2..d9f3c249ad 100644 --- a/core/core-frontend/src/views/share/link/pwd.vue +++ b/core/core-frontend/src/views/share/link/pwd.vue @@ -94,6 +94,13 @@ const refresh = async (formEl: FormInstance | undefined) => { } }) } +const formatPwd = (pwdText: string) => { + try { + return decodeURIComponent(pwdText) + } catch (e) { + return pwdText + } +} const prepare = () => { const curLocation = window.location.href const pmIndex = curLocation.lastIndexOf('?') @@ -114,6 +121,7 @@ const prepare = () => { } vid.value = uuid if (pwd) { + pwd = formatPwd(pwd) form.value.password = pwd refresh(pwdForm.value) }