Browse Source

记住菜单标签

wangqin
lau572 6 months ago
parent
commit
70d6ad01b6
  1. 1
      ruoyi-ui/src/store/modules/menu.js

1
ruoyi-ui/src/store/modules/menu.js

@ -27,6 +27,7 @@ const state = {
state.recentPages.push(item); state.recentPages.push(item);
} else { } else {
let i = state.recentPages.findIndex(unit => unit.path == item.path); let i = state.recentPages.findIndex(unit => unit.path == item.path);
item.isPinned = state.recentPages[i].isPinned
state.recentPages[i] = item; state.recentPages[i] = item;
} }
mutations.saveRecent(state); mutations.saveRecent(state);

Loading…
Cancel
Save