tweak
This commit is contained in:
		@@ -61,21 +61,15 @@ export default {
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
    generateTitle, // generateTitle by vue-i18n
 | 
					    generateTitle, // generateTitle by vue-i18n
 | 
				
			||||||
    generateRoute() {
 | 
					 | 
				
			||||||
      if (this.$route.name) {
 | 
					 | 
				
			||||||
        return this.$route
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
      return false
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    isActive(route) {
 | 
					    isActive(route) {
 | 
				
			||||||
      return route.path === this.$route.path
 | 
					      return route.path === this.$route.path
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    addViewTags() {
 | 
					    addViewTags() {
 | 
				
			||||||
      const route = this.generateRoute()
 | 
					      const { name } = this.$route
 | 
				
			||||||
      if (!route) {
 | 
					      if (name) {
 | 
				
			||||||
        return false
 | 
					        this.$store.dispatch('addView', this.$route)
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      this.$store.dispatch('addView', route)
 | 
					      return false
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    moveToCurrentTag() {
 | 
					    moveToCurrentTag() {
 | 
				
			||||||
      const tags = this.$refs.tag
 | 
					      const tags = this.$refs.tag
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user