@gt6/sdk 1.0.47 → 1.0.48
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.
package/dist/gt6-sdk.cjs.js
CHANGED
|
@@ -679,8 +679,10 @@ class ArticlesAPI {
|
|
|
679
679
|
filteredTotal: 0
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
|
+
// 将文章数据倒序排列
|
|
683
|
+
const reversedArticleIds = [...categoryData.articleIds].reverse();
|
|
682
684
|
// 应用搜索过滤
|
|
683
|
-
let filteredArticleIds =
|
|
685
|
+
let filteredArticleIds = reversedArticleIds.filter(articleObj => {
|
|
684
686
|
// 1. regionId 过滤
|
|
685
687
|
if (searchOptions?.regionIds && searchOptions.regionIds.length > 0) {
|
|
686
688
|
if (!articleObj.regionId || !searchOptions.regionIds.includes(articleObj.regionId)) {
|