Commit 804908e8 authored by jingnan's avatar jingnan 👀

任务页签重复展示bug处理

parent f8190a39
......@@ -104,7 +104,9 @@ const actions = {
id: model.appId,
path: { ...model.pageInfo }
})
commit('UPDATE_MENU', [])
if (model.appId !== 'todoTask'){
commit('UPDATE_MENU', [])
}
} else {
const findModel = state.allApp.find((el) => {
return el.id === Number(model.appId)
......
......@@ -8,6 +8,7 @@ const state = {
const mutations = {
ADD_VISITED_VIEW: (state, view) => {
if(view.belongModel !== 'todoTask' && view.path.includes('/dee-task-center/workflow/task-center/home')) return
state.previousRouter.unshift({ ...view }) // 记录前一路由地址
state.previousRouter = state.previousRouter.splice(0, 2)
const belongModel = sessionStorage.getItem('activePageModel') ? JSON.parse(sessionStorage.getItem('activePageModel')).id : 'todoTask'
......
......@@ -248,7 +248,7 @@ export default {
}
})
}
if (module.route === 'dee-task-center/workflow/task-center/home') {
if (module.route.includes('dee-task-center/workflow/task-center/home')) {
this.$store.dispatch('menu/activeModel', {
appId: 'todoTask',
pageInfo: {
......
......@@ -339,6 +339,13 @@ export default {
type: this.type
}
})
this.$store.dispatch('menu/activeModel', {
appId: 'todoTask',
pageInfo: {
title: item.taskType,
path: `/dee-task-center/workflow/task-center/home/${item.taskKey}`
}
})
}
// path: `/task-detail-${item.id}`,
......
......@@ -64,6 +64,13 @@ export default {
batchTaskItem: JSON.stringify(item)
}
})
this.$store.dispatch('menu/activeModel', {
appId: 'todoTask',
pageInfo: {
title: item.taskType,
path: `/dee-task-center/workflow/task-center/home/${item.taskKey}`
}
})
},
jumpList() {
this.$router.push({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment