diff --git a/ruoyi-ui/src/store/modules/menu.js b/ruoyi-ui/src/store/modules/menu.js index cfad661f..0af83a09 100644 --- a/ruoyi-ui/src/store/modules/menu.js +++ b/ruoyi-ui/src/store/modules/menu.js @@ -27,6 +27,7 @@ const state = { state.recentPages.push(item); } else { let i = state.recentPages.findIndex(unit => unit.path == item.path); + item.isPinned = state.recentPages[i].isPinned state.recentPages[i] = item; } mutations.saveRecent(state);