mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 11:21:44 +08:00
fix(仪表板): 移动端访问带密码的分享链接错误 #15961
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user