mirror of https://gitee.com/answerdev/answer.git
fix: answer's count
This commit is contained in:
parent
888e873a7c
commit
001474b14d
|
@ -92,8 +92,7 @@ const Index = () => {
|
|||
return v;
|
||||
});
|
||||
|
||||
console.log(res);
|
||||
setAnswers(res);
|
||||
setAnswers({ ...res, count: res.list.length });
|
||||
if (page > 0 || order) {
|
||||
// scroll into view;
|
||||
const element = document.getElementById('answerHeader');
|
||||
|
|
Loading…
Reference in New Issue