Skip to content

Commit

Permalink
Default theme is not work as expected
Browse files Browse the repository at this point in the history
I'm trying changing max suggestions like the link
https://vuepress.vuejs.org/default-theme-config/#search-box
But it was not work.

I fix this bug.
  • Loading branch information
vrjuliao authored Jul 29, 2019
1 parent 702e947 commit 45f6393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/plugin-search/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {
}
const { pages } = this.$site
const max = SEARCH_MAX_SUGGESTIONS
const max = this.$site.themeConfig.searchMaxSuggestions || SEARCH_MAX_SUGGESTIONS
const localePath = this.$localePath
const matches = item => (
item.title
Expand Down

0 comments on commit 45f6393

Please sign in to comment.