Unverified 提交 7f46a1be authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

Merge pull request #1553 from dataease/pr@dev@fix_mobile_api

fix: 移动端仪表板访问异常
......@@ -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()
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论