From 24ce318f9044c2a92ac665d1ff9f1d6167da13bd Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 26 Dec 2024 14:13:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20url?= =?UTF-8?q?=E9=87=8D=E5=AE=9A=E5=90=91=E5=A4=9A=E4=BD=99=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/permission.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-frontend/src/permission.ts b/core/core-frontend/src/permission.ts index f9e116f199..edc7303037 100644 --- a/core/core-frontend/src/permission.ts +++ b/core/core-frontend/src/permission.ts @@ -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