mirror of
https://github.com/dataease/dataease.git
synced 2026-06-14 09:41:47 +08:00
fix(仪表板): url重定向多余参数
This commit is contained in:
committed by
xuwei-fit2cloud
parent
7412db0d3c
commit
24ce318f90
@@ -74,6 +74,9 @@ router.beforeEach(async (to, from, next) => {
|
||||
let str = ''
|
||||
if (((from.query.redirect as string) || '?').split('?')[0] === to.path) {
|
||||
str = ((window.location.hash as string) || '?').split('?').reverse()[0]
|
||||
if (str.includes('redirect=')) {
|
||||
str = ''
|
||||
}
|
||||
}
|
||||
if (str) {
|
||||
to.fullPath += '?' + str
|
||||
|
||||
Reference in New Issue
Block a user