Skip to content

Commit

Permalink
bug: Tags bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangximufeng committed Feb 25, 2019
1 parent 351be20 commit b152953
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion components/Tags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,16 @@ export default {
pageWithSpecTag() {
if (!this.tagName) return [];
const tagKeys = this.$tags[this.tagName.toLowerCase()];
return this.pages.filter(page => page.key && !!~tagKeys.indexOf(page.key));
// return this.pages.filter(page => page.key && !!~tagKeys.indexOf(page.key));
return this.pages.filter(page => {
if (page.key) {
return page.key && !!~tagKeys.indexOf(page.key)
} else {
return []
}
});
},
}
}
Expand Down

0 comments on commit b152953

Please sign in to comment.