删除日志

delete log
This commit is contained in:
张巍 2020-08-13 10:38:22 +08:00
parent 588d07d1a6
commit 9c73f6b310
2 changed files with 0 additions and 4 deletions
src
layout/components
store/modules

View File

@ -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() {

View File

@ -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'