|
@@ -123,10 +123,12 @@ const useQuestionList = (type: CollectionAndWrongType.type) => {
|
|
|
collectionList.value = collectionListRes.rows;
|
|
|
total.value = collectionListRes.total;
|
|
|
const ids = collectionListRes.rows.map((item) => item.questionId);
|
|
|
- const questions = await getQuestionInfoByIds({
|
|
|
- ids,
|
|
|
- });
|
|
|
- questionList.value = questions.rows;
|
|
|
+ if (ids.length > 0) {
|
|
|
+ const questions = await getQuestionInfoByIds({
|
|
|
+ ids,
|
|
|
+ });
|
|
|
+ questionList.value = questions.rows;
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
const finished = computed(() => {
|