fix(仪表板): 预览页面无法正常打开

This commit is contained in:
dataeaseShu 2024-11-12 14:00:05 +08:00
parent 14cffed8c8
commit fda6fae98f

View File

@ -74,7 +74,7 @@ router.beforeEach(async (to, from, next) => {
if (permissionStore.getIsAddRouters) {
let str = ''
if (((from.query.redirect as string) || '?').split('?')[0] === to.path) {
str = ((from.query.redirect as string) || '?').split('?')[1]
str = ((window.location.hash as string) || '?').split('?').reverse()[0]
}
if (str) {
to.fullPath += '?' + str