forked from github/dataease
fix: 预览大屏无法显示问题
This commit is contained in:
parent
5f5dc3daa3
commit
c38bc7f3d8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user