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

This commit is contained in:
wangjiahao 2021-05-21 11:19:15 +08:00
parent 5f5dc3daa3
commit c38bc7f3d8

View File

@ -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 {