提交 1a64763e authored 作者: wangjiahao's avatar wangjiahao

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

上级 7092dce5
...@@ -28,8 +28,10 @@ router.beforeEach(async(to, from, next) => { ...@@ -28,8 +28,10 @@ router.beforeEach(async(to, from, next) => {
// start progress bar // start progress bar
NProgress.start() NProgress.start()
const mobiePreview = '/preview/' const mobileIgnores = ['/delink']
if (isMobile() && !to.path.includes(mobiePreview)) { const mobilePreview = '/preview/'
if (isMobile() && !to.path.includes(mobilePreview) && mobileIgnores.indexOf(to.path) === -1) {
window.location.href = window.origin + '/app.html' window.location.href = window.origin + '/app.html'
NProgress.done() NProgress.done()
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论