mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix: 公共链接移动端跳转被拦截问题
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user