mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 22:41:06 +08:00
fix(仪表板): 动态路径场景移动端分享链接无法访问
This commit is contained in:
committed by
fit2cloud-chenyw
parent
a13f2b0eee
commit
aac865a1c2
@@ -48,7 +48,12 @@ router.beforeEach(async (to, from, next) => {
|
||||
linkQuery = '?' + tempQuery
|
||||
}
|
||||
}
|
||||
window.location.href = window.origin + '/mobile.html#' + to.path + linkQuery
|
||||
let pathname = window.location.pathname
|
||||
pathname = pathname.replace('casbi/', '')
|
||||
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
|
||||
} else if (
|
||||
wsCache.get('user.token') ||
|
||||
isDesktop ||
|
||||
|
||||
Reference in New Issue
Block a user