chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -20,7 +20,7 @@ import { KnowledgeApi } from '@coze-arch/bot-api';
import { type ViewOnlinePageDetailProps } from '@/types';
/**
* 将API返回的网页信息转换为视图数据
* Convert the web page information returned by the API into view data
*/
const transformWebInfoToViewData = (webInfo: {
id?: string;
@@ -47,7 +47,7 @@ export const useGetWebInfo = (): {
include_content: true,
});
// 如果没有数据,返回空数组
// If there is no data, return an empty array
if (!responseData?.[webID]?.web_info) {
return [] as ViewOnlinePageDetailProps[];
}
@@ -56,7 +56,7 @@ export const useGetWebInfo = (): {
const mainPageData = transformWebInfoToViewData(webInfo);
const result = [mainPageData];
// 处理子页面数据
// Processing subpage data
if (webInfo?.subpages?.length) {
const subpagesData = webInfo.subpages.map(transformWebInfoToViewData);
result.push(...subpagesData);