From aac865a1c2ad7816d3daad03f091d543714d8a19 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 18 Mar 2025 18:39:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E8=B7=AF=E5=BE=84=E5=9C=BA=E6=99=AF=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=AE=BF=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/permission.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/permission.ts b/core/core-frontend/src/permission.ts index 7783acbdbe..843e52e8bc 100644 --- a/core/core-frontend/src/permission.ts +++ b/core/core-frontend/src/permission.ts @@ -48,7 +48,12 @@ router.beforeEach(async (to, from, next) => { linkQuery = '?' + tempQuery } } - window.location.href = window.origin + '/mobile.html#' + to.path + linkQuery + let pathname = window.location.pathname + pathname = pathname.replace('casbi/', '') + pathname = pathname.replace('oidc/', '') + pathname = pathname.substring(0, pathname.length - 1) + const prefix = window.origin + pathname + window.location.href = prefix + '/mobile.html#' + to.path + linkQuery } else if ( wsCache.get('user.token') || isDesktop ||