perf(tagsView):split to single modules

This commit is contained in:
Pan
2017-12-08 16:17:40 +08:00
parent b7939165d1
commit ca75f7bcbc
7 changed files with 59 additions and 46 deletions

View File

@@ -11,7 +11,7 @@ export default {
name: 'TableMain',
computed: {
cachedViews() {
return this.$store.state.app.cachedViews
return this.$store.state.tagsView.cachedViews
}
}
}

View File

@@ -13,7 +13,8 @@ export default {
name: 'AppMain',
computed: {
cachedViews() {
return this.$store.state.app.cachedViews
// console.log(this.$store.state.tagsView.cachedViews)
return this.$store.state.tagsView.cachedViews
}
// key() {
// return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()

View File

@@ -15,7 +15,7 @@ export default {
components: { ScrollPane },
computed: {
visitedViews() {
return this.$store.state.app.visitedViews
return this.$store.state.tagsView.visitedViews
}
},
mounted() {