瀏覽代碼

Only set cateogry if on index page

sbkwgh 8 年之前
父節點
當前提交
294ac29883
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)