删除日志
delete log
This commit is contained in:
@@ -17,7 +17,6 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
cachedViews() {
|
||||
console.log('123', this.$store.state.tagsView.cachedViews)
|
||||
return this.$store.state.tagsView.cachedViews
|
||||
},
|
||||
key() {
|
||||
|
@@ -5,10 +5,7 @@ const state = {
|
||||
|
||||
const mutations = {
|
||||
ADD_VISITED_VIEW: (state, view) => {
|
||||
console.log(view)
|
||||
if (state.visitedViews.some(v => v.fullPath === view.fullPath)) return
|
||||
console.log(3)
|
||||
console.log('添加新页签')
|
||||
state.visitedViews.push(
|
||||
Object.assign({}, view, {
|
||||
title: view.meta.title || 'no-name'
|
||||
|
Reference in New Issue
Block a user