mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
fix(仪表板): url重定向多余参数
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user