Explorar o código

考生启用、禁用api修改

Michael Wang %!s(int64=4) %!d(string=hai) anos
pai
achega
75ddf61637
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/api/examwork-examstudent.js

+ 2 - 2
src/api/examwork-examstudent.js

@@ -98,9 +98,9 @@ export function saveExamStudent({
 }
 
 export function toggleEnableExamStudent({ id, enable }) {
-  return httpApp.post("/api/admin/examStudent/save", [{ id, enable }]);
+  return httpApp.post("/api/admin/examStudent/toggle", [{ id, enable }]);
 }
 
 export function toggleEnableExamStudentArray(ary = []) {
-  return httpApp.post("/api/admin/examStudent/save", ary);
+  return httpApp.post("/api/admin/examStudent/toggle", ary);
 }