Skip to content

Commit

Permalink
fix: cbt to 课程单元
Browse files Browse the repository at this point in the history
  • Loading branch information
icey0126 committed Feb 26, 2024
1 parent 37ac409 commit 5c7b340
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/StatisticReportSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface Props {
export default function StatisticReportSummary({ elements }: Props) {
if (elements) {
const cardConent = []
const titleList = ['CBT', '文档', '文档集', 'Quiz', '视频', 'H5']
const titleList = ['课程单元', '文档', '文档集', 'Quiz', '视频', 'H5']
const data = [
getTabSum('cbt', elements),
getTabSum('doc', elements),
Expand Down
2 changes: 1 addition & 1 deletion src/components/StatisticReportTrend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function StatisticReportTrend({
onChange={getKey}
className='homePageTabs'
>
<TabPane tab='CBT' key='cbt' />
<TabPane tab='课程单元' key='cbt' />
<TabPane tab='文档' key='doc' />
<TabPane tab='文档集' key='docset' />
<TabPane tab='Quiz' key='quiz' />
Expand Down
2 changes: 1 addition & 1 deletion src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function titleTranslate(title: any, type = 'CBT') {
case 'click':
return '点击量'
case 'cbt':
if (type === 'CBT') return 'CBT'
if (type === 'CBT') return '课程单元'
else return type
case 'doc':
return '文档'
Expand Down

0 comments on commit 5c7b340

Please sign in to comment.