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
|
-
|
|
362
|
-
|
|
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:工程化')
|