|
@@ -252,9 +252,11 @@ async function getSetting() {
|
|
|
}
|
|
|
res = await httpApp.post("/admin/exam/check/answer/getSetting", form);
|
|
|
} else {
|
|
|
- res = await httpApp.get(
|
|
|
- `/admin/exam/check/student/getSetting${window.location.search}`
|
|
|
- );
|
|
|
+ const form = new FormData();
|
|
|
+ form.append("checkType", route.query.checkType as string);
|
|
|
+ form.append("subjectCode", route.query.subjectCode as string);
|
|
|
+ form.append("examSite", route.query.examSite as string);
|
|
|
+ res = await httpApp.post(`/admin/exam/check/student/getSetting`, form);
|
|
|
}
|
|
|
|
|
|
setting.fileServer = res.data.fileServer;
|