fix(仪表板): 仪表板分享链接自动填充密码功能移动端错误

This commit is contained in:
fit2cloud-chenyw
2025-04-29 19:41:01 +08:00
committed by fit2cloud-chenyw
parent b1bf9d2d50
commit d73046e901
2 changed files with 6 additions and 2 deletions

View File

@@ -53,7 +53,11 @@ router.beforeEach(async (to, from, next) => {
pathname = pathname.replace('oidc/', '')
pathname = pathname.substring(0, pathname.length - 1)
const prefix = window.origin + pathname
window.location.href = prefix + '/mobile.html#' + to.path + linkQuery
let toPath = to.fullPath
if (toPath.includes('?')) {
toPath = to.fullPath.substring(0, to.fullPath.lastIndexOf('?'))
}
window.location.href = prefix + '/mobile.html#' + toPath + linkQuery
} else if (
wsCache.get('user.token') ||
isDesktop ||