fix: 移动端仪表板访问异常
This commit is contained in:
parent
84f2a776b1
commit
dae80f9bfc
@ -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