From c0315a296e4568093505960d22554186ba25607f Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 18 Nov 2025 12:48:00 +0800 Subject: [PATCH] =?UTF-8?q?perf(X-Pack):=20=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E6=89=93=E5=BC=80=E9=A2=84=E8=A7=88=E9=93=BE=E6=8E=A5=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B0=E6=AD=A3=E7=A1=AE=E7=9A=84=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= 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 7e6dd1c598..59226024e5 100644 --- a/core/core-frontend/src/permission.ts +++ b/core/core-frontend/src/permission.ts @@ -66,6 +66,9 @@ router.beforeEach(async (to, from, next) => { let pathname = window.location.pathname pathname = pathname.substring(0, pathname.length - 1) let url = window.origin + pathname + '/mobile.html#/index' + if (location.hash?.startsWith('#/preview')) { + url = window.origin + pathname + '/mobile.html' + location.hash + } if (window.location.search) { url += window.location.search }