Skip to content

Commit

Permalink
fix: 修复搜索结果增加排除功能后引起的原功能失效。
Browse files Browse the repository at this point in the history
fixed #2111 #2117
  • Loading branch information
ronggang committed Jan 20, 2025
1 parent 7098302 commit d6077da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options/views/search/SearchTorrent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,7 @@ export default Vue.extend({
const excludes = exclude.toLowerCase().trim().split(" ").filter(key => key !== "");

// 过滤数据项
const filteredItems = items.filter(item => {
this.filteredDatas = items.filter(item => {
// 将项目标题和副标题组合并转化为小写
const source = (item.title + (item.subTitle || "")).toLowerCase();

Expand All @@ -1802,7 +1802,7 @@ export default Vue.extend({

return includeResult && excludeResult;
});
return filteredItems;
return this.filteredDatas;
},

getIMDbIdFromDouban(doubanId: string) {
Expand Down

0 comments on commit d6077da

Please sign in to comment.