Commit 804908e8 authored by jingnan's avatar jingnan 👀

任务页签重复展示bug处理

parent f8190a39
...@@ -104,7 +104,9 @@ const actions = { ...@@ -104,7 +104,9 @@ const actions = {
id: model.appId, id: model.appId,
path: { ...model.pageInfo } path: { ...model.pageInfo }
}) })
commit('UPDATE_MENU', []) if (model.appId !== 'todoTask'){
commit('UPDATE_MENU', [])
}
} else { } else {
const findModel = state.allApp.find((el) => { const findModel = state.allApp.find((el) => {
return el.id === Number(model.appId) return el.id === Number(model.appId)
......
...@@ -8,6 +8,7 @@ const state = { ...@@ -8,6 +8,7 @@ const state = {
const mutations = { const mutations = {
ADD_VISITED_VIEW: (state, view) => { 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.unshift({ ...view }) // 记录前一路由地址
state.previousRouter = state.previousRouter.splice(0, 2) state.previousRouter = state.previousRouter.splice(0, 2)
const belongModel = sessionStorage.getItem('activePageModel') ? JSON.parse(sessionStorage.getItem('activePageModel')).id : 'todoTask' const belongModel = sessionStorage.getItem('activePageModel') ? JSON.parse(sessionStorage.getItem('activePageModel')).id : 'todoTask'
......
...@@ -248,7 +248,7 @@ export default { ...@@ -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', { this.$store.dispatch('menu/activeModel', {
appId: 'todoTask', appId: 'todoTask',
pageInfo: { pageInfo: {
......
...@@ -339,6 +339,13 @@ export default { ...@@ -339,6 +339,13 @@ export default {
type: this.type 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}`, // path: `/task-detail-${item.id}`,
......
...@@ -64,6 +64,13 @@ export default { ...@@ -64,6 +64,13 @@ export default {
batchTaskItem: JSON.stringify(item) 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() { jumpList() {
this.$router.push({ 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