fix: 修正搜索页面文档路由跳转逻辑

- 点击文档条目时,跳转到对应的download路由
- 修改搜索条目转换逻辑,将product_documents类型条目的id有product_document的id改为文件uuid
This commit is contained in:
2025-10-30 13:43:00 +08:00
parent 03fff90091
commit 63491fd5f9
6 changed files with 12 additions and 3 deletions

View File

@ -124,6 +124,10 @@
return localePath({ path: `/solutions/${slug}` });
}
if (item.type === 'document') {
return localePath({ path: `/download/${slug}` });
}
return null;
};