fix(仪表板): url重定向多余参数
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
dataeaseShu 2024-12-26 14:13:37 +08:00 committed by xuwei-fit2cloud
parent 7412db0d3c
commit 24ce318f90

View File

@ -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