fix: 修正搜索页面相关问题路由跳转逻辑
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m56s

- 当用户点击问题条目时,生成一个带有query的url: faq?focus=[slug]自动展开faq页面中的对应词条
This commit is contained in:
2025-10-30 14:06:43 +08:00
parent 63491fd5f9
commit cea67404ed
2 changed files with 33 additions and 2 deletions

View File

@ -128,6 +128,10 @@
return localePath({ path: `/download/${slug}` });
}
if (item.type === 'question') {
return localePath({ path: `/support/faq`, query: { focus: slug } });
}
return null;
};