@ -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);