|
@@ -5,7 +5,7 @@ const state = {
|
|
|
|
|
|
const mutations = {
|
|
const mutations = {
|
|
ADD_VISITED_VIEW: (state, view) => {
|
|
ADD_VISITED_VIEW: (state, view) => {
|
|
- if (state.visitedViews.some(v => v.path === view.path)) return
|
|
|
|
|
|
+ if (state.visitedViews.some(v => v.name === view.name)) return
|
|
state.visitedViews.push(
|
|
state.visitedViews.push(
|
|
Object.assign({}, view, {
|
|
Object.assign({}, view, {
|
|
title: view.meta.title || 'no-name'
|
|
title: view.meta.title || 'no-name'
|