fix: 移动端仪表板访问异常

This commit is contained in:
fit2cloud-chenyw 2021-12-29 14:36:52 +08:00
parent 84f2a776b1
commit dae80f9bfc

View File

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