提交 c38bc7f3 authored 作者: wangjiahao's avatar wangjiahao

fix: 预览大屏无法显示问题

上级 5f5dc3da
......@@ -29,7 +29,7 @@ router.beforeEach(async(to, from, next) => {
NProgress.done()
} else {
const hasGetUserInfo = store.getters.name
if (hasGetUserInfo) {
if (hasGetUserInfo || to.path.indexOf('/preview/') > -1) {
next()
store.dispatch('permission/setCurrentPath', to.path)
} else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论