vuepress-theme-uniapp-official 1.4.33 → 1.4.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -159,6 +159,7 @@
159
159
  searchBox: { placeholder, buttonText, searchBy },
160
160
  resultsScreen: { resultsText, noResultsText, askNoResultsText },
161
161
  },
162
+ extraFacetFilters = []
162
163
  } = searchPageConfig;
163
164
  const crawlerUrl = 'https://zh.uniapp.dcloud.io/'
164
165
 
@@ -358,11 +359,8 @@
358
359
  searchByAlgolia() {
359
360
  const { searchParameters = {} } = this.options;
360
361
  let categoryArr = [`category:${this.currentCategory.text}`];
361
- if (this.currentCategory.text === 'uni-app') {
362
- // category:uni-app OR tag:UTS OR tag:插件
363
- categoryArr.push('tag:UTS', 'tag:插件')
364
- categoryArr = [categoryArr];
365
- }
362
+ categoryArr.push(...extraFacetFilters)
363
+ categoryArr = [categoryArr];
366
364
  if (this.currentCategory.text === 'uni-app x') {
367
365
  // category:uni-app OR tag:UTS OR tag:插件
368
366
  categoryArr.push('tag:插件', 'tag:工程化')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vuepress-theme-uniapp-official",
3
- "version": "1.4.33",
3
+ "version": "1.4.34",
4
4
  "description": "uni-app official website theme for vuepress",
5
5
  "main": "index.js",
6
6
  "repository": {