This commit is contained in:
Pan 2019-05-21 10:17:08 +08:00
parent 131b9b9eff
commit 581e0d9d76
2 changed files with 6 additions and 1 deletions

View File

@ -16,7 +16,7 @@ export default {
return this.$store.state.tagsView.cachedViews return this.$store.state.tagsView.cachedViews
}, },
key() { key() {
return this.$route.fullPath return this.$route.path
} }
} }
} }

View File

@ -30,6 +30,11 @@ export default {
createdTimes: 0 createdTimes: 0
} }
}, },
watch: {
activeName(val) {
this.$router.push(`${this.$route.path}?tab=${val}`)
}
},
methods: { methods: {
showCreatedTimes() { showCreatedTimes() {
this.createdTimes = this.createdTimes + 1 this.createdTimes = this.createdTimes + 1