Browse Source

fix: api change

Michael Wang 3 years ago
parent
commit
bdd38f87f5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/features/admin/confirmPaper/ConfirmPaper.vue

+ 3 - 2
src/features/admin/confirmPaper/ConfirmPaper.vue

@@ -179,7 +179,8 @@ import { ArrowLeftOutlined, ArrowRightOutlined } from "@ant-design/icons-vue";
 const { addTimeout } = useTimers();
 
 const route = useRoute();
-const checkType = route.query.checkType;
+// 使用 location.search 替代
+// const checkType = route.query.checkType;
 const queryId = route.query.queryId as string;
 let pageType: "DATA_CHECK" | "HAND_CHECK" = "HAND_CHECK";
 if (queryId) {
@@ -252,7 +253,7 @@ async function getSetting() {
     res = await httpApp.post("/admin/exam/check/answer/getSetting", form);
   } else {
     res = await httpApp.get(
-      `/admin/exam/check/student/getSetting?checkType=${checkType}`
+      `/admin/exam/check/student/getSetting${window.location.search}`
     );
   }