Merge pull request #7417 from dataease/pr@dev_one_dot_x

fix: 系统管理-任务管理-数据同步,点击“添加任务”后,页面左侧导航栏自动消失 #7373
This commit is contained in:
dataeaseShu 2023-12-27 18:05:01 +08:00 committed by GitHub
commit f98bdf9a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,6 +92,7 @@ router.beforeEach(async(to, from, next) => routeBefore(() => {
const hasGetUserInfo = store.getters.name
if (hasGetUserInfo || to.path.indexOf('/previewScreenShot/') > -1 || to.path.indexOf('/preview/') > -1 || to.path.indexOf('/delink') > -1 || to.path.indexOf('/nolic') > -1) {
next()
if (to.path.indexOf('/task-ds-form') > -1) return
store.dispatch('permission/setCurrentPath', to.path)
let route = store.getters.permission_routes.find(
item => item.path === '/' + to.path.split('/')[1]