Skip to content

Commit

Permalink
resume url search.
Browse files Browse the repository at this point in the history
  • Loading branch information
fanchenio committed Nov 5, 2023
1 parent d150070 commit 05ef34a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/pages/item/js/index.ts
Expand Up @@ -379,6 +379,19 @@ function getItemSearchMap(
abbrList.push(item);
searchMap.set(abbr, abbrList);
}
// 网址
if ((item as Item).type && (item as Item).type === 2) {
let target = (item as Item).data.target;
if (target) {
let url = target.toLowerCase();
let urlList = searchMap.get(url);
if (!urlList) {
urlList = [];
}
urlList.push(item);
searchMap.set(url, urlList);
}
}
// 备注
if (remark) {
let r = (item as Item).data.remark;
Expand Down

0 comments on commit 05ef34a

Please sign in to comment.