diff --git a/src/api/question/question.js b/src/api/question/question.js index 69379b8..696ee31 100644 --- a/src/api/question/question.js +++ b/src/api/question/question.js @@ -12,14 +12,17 @@ export const getQuestion= (type)=>{ }, }) } -//注册 -export const validationAnswer= (user)=>{ +//验证题目是否正确 +export const checkQuestion= ({ + questionId, + answer +})=>{ return http({ url:"/question/validationAnswer", method:"get", - data:user, - headers:{ - isToken:false + params:{ + questionId, + answer } }) } \ No newline at end of file diff --git a/src/components/TypeSelect.vue b/src/components/TypeSelect.vue index 9230142..27f0734 100644 --- a/src/components/TypeSelect.vue +++ b/src/components/TypeSelect.vue @@ -1,5 +1,6 @@