forked from github/dataease
Merge pull request #1553 from dataease/pr@dev@fix_mobile_api
fix: 移动端仪表板访问异常
This commit is contained in:
commit
7f46a1be0f
@ -27,7 +27,9 @@ const whiteList = ['/login', '/401', '/404', '/delink', '/nolic'] // no redirect
|
||||
router.beforeEach(async(to, from, next) => {
|
||||
// start progress bar
|
||||
NProgress.start()
|
||||
if (isMobile()) {
|
||||
|
||||
const mobiePreview = '/preview/'
|
||||
if (isMobile() && !to.path.includes(mobiePreview)) {
|
||||
window.location.href = window.origin + '/app.html'
|
||||
NProgress.done()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user