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)' }}>
|
||||
(当前
|
||||
<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>,
|
||||
key: "questionNo",
|
||||
|
@@ -79,7 +79,6 @@ const QuestionBank = () => {
|
||||
url: apiName.getSubjectPage,
|
||||
data: params
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
setTotal(res.data.total)
|
||||
setQuestionList(res.data.result)
|
||||
})
|
||||
|
Reference in New Issue
Block a user