fix: 公共链接移动端跳转被拦截问题

This commit is contained in:
wangjiahao 2022-01-06 23:50:48 +08:00
parent 7092dce543
commit 1a64763eda

View File

@ -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()
}