parent
588d07d1a6
commit
9c73f6b310
src
|
@ -17,7 +17,6 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
cachedViews() {
|
cachedViews() {
|
||||||
console.log('123', this.$store.state.tagsView.cachedViews)
|
|
||||||
return this.$store.state.tagsView.cachedViews
|
return this.$store.state.tagsView.cachedViews
|
||||||
},
|
},
|
||||||
key() {
|
key() {
|
||||||
|
|
|
@ -5,10 +5,7 @@ const state = {
|
||||||
|
|
||||||
const mutations = {
|
const mutations = {
|
||||||
ADD_VISITED_VIEW: (state, view) => {
|
ADD_VISITED_VIEW: (state, view) => {
|
||||||
console.log(view)
|
|
||||||
if (state.visitedViews.some(v => v.fullPath === view.fullPath)) return
|
if (state.visitedViews.some(v => v.fullPath === view.fullPath)) return
|
||||||
console.log(3)
|
|
||||||
console.log('添加新页签')
|
|
||||||
state.visitedViews.push(
|
state.visitedViews.push(
|
||||||
Object.assign({}, view, {
|
Object.assign({}, view, {
|
||||||
title: view.meta.title || 'no-name'
|
title: view.meta.title || 'no-name'
|
||||||
|
|
Loading…
Reference in New Issue