diff --git a/utils/searchUtil.js b/utils/searchUtil.js index 8e478cf6d0ecfea0a8b659c130f98fd27e129d8e..0591183a7160ae6bae5431860f6f201032f336c7 100644 --- a/utils/searchUtil.js +++ b/utils/searchUtil.js @@ -65,7 +65,7 @@ export function gitToLabel(url) { export function handleFormatRepoStars (repoObj, gits) { const card = { type: 'search_relate_repo', - title: 'Star对比', + title: 'Star 数量', ready: true, data: [] } @@ -75,7 +75,7 @@ export function handleFormatRepoStars (repoObj, gits) { }) Object.keys(repoObj).forEach(child => { const data = repoObj[child] - const cardDataItem = { data: [{ data: [], label: 'Star数量' }], labels: [], info: gitsMap[child] } + const cardDataItem = { data: [{ data: [], label: 'Star 数量' }], labels: [], info: gitsMap[child] } data.forEach(dataItem => { const { date, stargazers } = dataItem cardDataItem.labels.push(date)