feat: 增加题目总数
This commit is contained in:
@@ -32,7 +32,7 @@ const QuestionList = (props) => {
|
|||||||
{
|
{
|
||||||
title: <div style={{ display: 'flex' }}>题目 <div className="question-count-box" style={{ marginLeft: '10px', color: 'rgba(0, 0, 0, 0.5)' }}>
|
title: <div style={{ display: 'flex' }}>题目 <div className="question-count-box" style={{ marginLeft: '10px', color: 'rgba(0, 0, 0, 0.5)' }}>
|
||||||
(当前
|
(当前
|
||||||
<span style={{ color: "rgba(0, 0, 0, 0.65)" }}> {100} </span>
|
<span style={{ color: "rgba(0, 0, 0, 0.65)" }}> {props.total || 0} </span>
|
||||||
道题)
|
道题)
|
||||||
</div></div>,
|
</div></div>,
|
||||||
key: "questionNo",
|
key: "questionNo",
|
||||||
|
@@ -79,7 +79,6 @@ const QuestionBank = () => {
|
|||||||
url: apiName.getSubjectPage,
|
url: apiName.getSubjectPage,
|
||||||
data: params
|
data: params
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res)
|
|
||||||
setTotal(res.data.total)
|
setTotal(res.data.total)
|
||||||
setQuestionList(res.data.result)
|
setQuestionList(res.data.result)
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user