From 009cdaaab9e6abbd1a0bb0a86525aea751b16537 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 6 Jan 2022 23:53:45 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/permission.js b/frontend/src/permission.js index 89b2adbd77..04a8df7b17 100644 --- a/frontend/src/permission.js +++ b/frontend/src/permission.js @@ -27,9 +27,10 @@ const whiteList = ['/login', '/401', '/404', '/delink', '/nolic'] // no redirect router.beforeEach(async(to, from, next) => { // start progress bar NProgress.start() + const mobileIgnores = ['/delink'] + const mobilePreview = '/preview/' - const mobiePreview = '/preview/' - if (isMobile() && !to.path.includes(mobiePreview)) { + if (isMobile() && !to.path.includes(mobilePreview) && mobileIgnores.indexOf(to.path) === -1) { window.location.href = window.origin + '/app.html' NProgress.done() }