Skip to content

Commit 6f78bfa

Browse files
committed
fix: find question list
1 parent f80c59e commit 6f78bfa

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

common/utils/question-getter/getQuestionByKeyword.js

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ export async function getQuestionByKeyword(keyword) {
66
console.log(questionData)
77
return questionData?.data?.problemsetQuestionList?.questions
88
}
9-

common/view/finder.view.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ export async function easyFinderView() {
2525
choices: []
2626
}]
2727
let list = []
28-
console.log(data)
29-
// data.map(q => list.push(q.titleCn))
30-
// questionList[0].choices = list.join(',')
31-
// console.log(list)
28+
data.map(q => list.push(q.titleCn))
29+
questionList[0].choices = list.join(',')
30+
console.log(list)
3231
// const { chooseQuestion } = await inquirer.prompt(questionList, null)
3332
// console.log(chooseQuestion)
3433
break

0 commit comments

Comments
 (0)