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