From 5a5e74a91844b9e38303d8b220b47b72d5d27f66 Mon Sep 17 00:00:00 2001 From: Pan Date: Fri, 15 Feb 2019 15:19:41 +0800 Subject: [PATCH] change name --- src/views/layout/components/TagsView.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue index e36b5a94..1153d02a 100644 --- a/src/views/layout/components/TagsView.vue +++ b/src/views/layout/components/TagsView.vue @@ -51,7 +51,7 @@ export default { }, watch: { $route() { - this.addViewTags() + this.addTags() this.moveToCurrentTag() }, visible(value) { @@ -63,8 +63,8 @@ export default { } }, mounted() { - this.initViewTags() - this.addViewTags() + this.initTags() + this.addTags() }, methods: { generateTitle, // generateTitle by vue-i18n @@ -91,7 +91,7 @@ export default { return tags }, - initViewTags() { + initTags() { const affixTags = this.affixTags = this.filterAffixTags(this.routers) for (const tag of affixTags) { // Must have tag name @@ -100,7 +100,7 @@ export default { } } }, - addViewTags() { + addTags() { const { name } = this.$route if (name) { this.$store.dispatch('addView', this.$route)