Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4893b41 commit ba89f39Copy full SHA for ba89f39
packages/@vuepress/theme-default/components/AlgoliaSearchBox.vue
@@ -53,9 +53,10 @@ export default {
53
{
54
inputSelector: '#algolia-search-input',
55
// #697 Make docsearch work well at i18n mode.
56
- algoliaOptions: Object.assign({
57
- 'facetFilters': [`lang:${lang}`].concat(algoliaOptions.facetFilters || [])
58
- }, algoliaOptions),
+ algoliaOptions: {
+ ...algoliaOptions,
+ facetFilters: [`lang:${lang}`].concat(algoliaOptions.facetFilters || [])
59
+ },
60
handleSelected: (input, event, suggestion) => {
61
const { pathname, hash } = new URL(suggestion.url)
62
const routepath = pathname.replace(this.$site.base, '/')
0 commit comments