Skip to content

Commit 1a64763

Browse files
committed
fix: 公共链接移动端跳转被拦截问题
1 parent 7092dce commit 1a64763

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frontend/src/permission.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ router.beforeEach(async(to, from, next) => {
2828
// start progress bar
2929
NProgress.start()
3030

31-
const mobiePreview = '/preview/'
32-
if (isMobile() && !to.path.includes(mobiePreview)) {
31+
const mobileIgnores = ['/delink']
32+
const mobilePreview = '/preview/'
33+
34+
if (isMobile() && !to.path.includes(mobilePreview) && mobileIgnores.indexOf(to.path) === -1) {
3335
window.location.href = window.origin + '/app.html'
3436
NProgress.done()
3537
}

0 commit comments

Comments
 (0)