From 1a64763eda11d1eee4877b9482583cf5a5d6dab3 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 6 Jan 2022 23:50:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=AC=E5=85=B1=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=B7=B3=E8=BD=AC=E8=A2=AB=E6=8B=A6?= =?UTF-8?q?=E6=88=AA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/permission.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/permission.js b/frontend/src/permission.js index 89b2adbd77..a084a7fb39 100644 --- a/frontend/src/permission.js +++ b/frontend/src/permission.js @@ -28,8 +28,10 @@ router.beforeEach(async(to, from, next) => { // start progress bar NProgress.start() - const mobiePreview = '/preview/' - if (isMobile() && !to.path.includes(mobiePreview)) { + const mobileIgnores = ['/delink'] + const mobilePreview = '/preview/' + + if (isMobile() && !to.path.includes(mobilePreview) && mobileIgnores.indexOf(to.path) === -1) { window.location.href = window.origin + '/app.html' NProgress.done() }