Parcourir la source

Only set cateogry if on index page

sbkwgh il y a 8 ans
Parent
commit
294ac29883
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/App.vue

+ 1 - 1
src/App.vue

@@ -320,7 +320,7 @@
 					//the title of the index page
 					//but if we're on another page (i.e. title is not set)
 					//don't overwrite the title
-					if(!this.$store.state.meta.title.length) {
+					if(!this.$store.state.meta.title.length && this.$route.params.category) {
 						let selectedCategory = this.$route.params.category.toUpperCase()
 						let category = this.categories.find(c => c.value === selectedCategory)