|
@@ -505,13 +505,6 @@ function generateThreeOptions(options: { id: number; title: string }[]) {
|
|
// 选项:先随机从2,3,4出两个,再和选项1随机组成最终选项
|
|
// 选项:先随机从2,3,4出两个,再和选项1随机组成最终选项
|
|
// 题型:随机这些题目
|
|
// 题型:随机这些题目
|
|
|
|
|
|
-const randomQuestions = questions.map((questionArray) => {
|
|
|
|
- const question = shuffle(questionArray)[0];
|
|
|
|
- return {
|
|
|
|
- ...question,
|
|
|
|
- options: generateThreeOptions(question.options),
|
|
|
|
- };
|
|
|
|
-});
|
|
|
|
|
|
|
|
export {
|
|
export {
|
|
questions,
|
|
questions,
|