feat: 增加题目总数

This commit is contained in:
秋水浮尘
2023-10-18 01:50:48 +08:00
parent 9828f6cbbb
commit 9322d1b71b
2 changed files with 1 additions and 2 deletions

View File

@@ -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",

View File

@@ -79,7 +79,6 @@ const QuestionBank = () => {
url: apiName.getSubjectPage,
data: params
}).then(res => {
console.log(res)
setTotal(res.data.total)
setQuestionList(res.data.result)
})