From c6d491f0a36cb755125957b6a3d4dfcc71b049c7 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Mon, 5 Aug 2019 15:12:31 +0800
Subject: [PATCH] https://www.trustie.net/issues/22768
---
public/react/src/modules/paths/PathDetail/DetailTop.js | 2 +-
public/react/src/search/SearchPage.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js
index 09425df92..5bfb3c765 100644
--- a/public/react/src/modules/paths/PathDetail/DetailTop.js
+++ b/public/react/src/modules/paths/PathDetail/DetailTop.js
@@ -195,7 +195,7 @@ class DetailTop extends Component{
detailInfoList &&
{ detailInfoList.stages_count!=0 ? - 章节{detailInfoList.stages_count}
: ""}
- { detailInfoList.stage_shixuns_count!=0 ? - 实训{ detailInfoList.stage_shixuns_count}
: ""}
+ { detailInfoList.shixuns_count!=0 ? - 实训{ detailInfoList.shixuns_count}
: ""}
{ detailInfoList.challenge_choose_count!=0 ? - 选择题任务{detailInfoList.challenge_choose_count}
: ""}
{ detailInfoList.challenges_count!=0 ? - 实践任务{detailInfoList.challenges_count}
: ""}
{ detailInfoList.subject_score!=0 ? - 经验值{detailInfoList.subject_score}
: ""}
diff --git a/public/react/src/search/SearchPage.js b/public/react/src/search/SearchPage.js
index 68efca036..c455379af 100644
--- a/public/react/src/search/SearchPage.js
+++ b/public/react/src/search/SearchPage.js
@@ -286,10 +286,10 @@ class SearchPage extends Component{
}
- {!!item.stage_shixuns_count &&
+ {!!item.shixuns_count &&
{/* */}
实训数:
- {item.stage_shixuns_count}
+ {item.shixuns_count}
}
{type == 'subject' && !!item.visits_count &&