From 5165ee09de8555e12fb44c458a3d04e41f58e28f Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期二, 12 十一月 2024 15:18:43 +0800 Subject: [PATCH] 完成错题详情查看 --- src/api/modules/exam.js | 23 +++++++++++++---------- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/api/modules/exam.js b/src/api/modules/exam.js index 1df7671..bf3fab4 100644 --- a/src/api/modules/exam.js +++ b/src/api/modules/exam.js @@ -1,14 +1,17 @@ import service from "@/api"; - -export const getExamList = () => { - return service.get('/api/v1/getExamList'); -} - -export const getExamInfo = () => { - return service.get('/api/v1/getExamInfo'); -} - -export const getExamListV2 = (postData = {examName: ''}) => { +export const getExamList = (postData = {examName: ''}) => { return service.post('/api/student/exam/page',postData); +} + +export const getExamInfo = (id) => { + return service.post('/api/student/exam/start/' + id); +} + +export const submitExam = (postData) => { + return service.post('/api/student/exam/submit', postData); +} + +export const saveExam = (postData) => { + return service.post('/api/student/exam/timing', postData); } \ No newline at end of file -- Gitblit v1.8.0