feat: 增加题目总数

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

No files matched your search

+1 -1
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",
-1
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)
})