소스 검색

考生启用、禁用api修改

Michael Wang 4 년 전
부모
커밋
75ddf61637
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
 }