Skip to content

Commit

Permalink
Fix: Remember Registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricargame committed Nov 15, 2024
1 parent 58f426f commit 5fece54
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/store/modules/ADempiere/dictionary/browser/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,18 @@ export default {
const tabViewsVisited = rootGetters.visitedViews
dispatch('tagsView/delView', currentRoute)
// go to back page
const oldRouter = tabViewsVisited[tabViewsVisited.length - 1]
let oldRouterProcess
tabViewsVisited.filter(data => {
if (!isEmptyValue(data.query)) {
if (data.meta.action_uuid === currentRoute.query.parentUuid) {
oldRouterProcess = data
}
}
})
let oldRouter = tabViewsVisited[tabViewsVisited.length - 1]
if (!isEmptyValue(oldRouterProcess)) {
oldRouter = oldRouterProcess
}
router.push({
name: oldRouter.name,
query: {
Expand Down

0 comments on commit 5fece54

Please sign in to comment.