25 lines
495 B
JavaScript
25 lines
495 B
JavaScript
|
import http from "@/utils/http";
|
||
|
//获取题目
|
||
|
export const getQuestion= (type)=>{
|
||
|
if(type==null||type==undefined){
|
||
|
type="refresh";
|
||
|
}
|
||
|
return http({
|
||
|
url:"/question/getQuestion",
|
||
|
method:"get",
|
||
|
params:{
|
||
|
type
|
||
|
},
|
||
|
})
|
||
|
}
|
||
|
//注册
|
||
|
export const validationAnswer= (user)=>{
|
||
|
return http({
|
||
|
url:"/question/validationAnswer",
|
||
|
method:"get",
|
||
|
data:user,
|
||
|
headers:{
|
||
|
isToken:false
|
||
|
}
|
||
|
})
|
||
|
}
|