|
@@ -140,7 +140,7 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { ref } from "vue";
|
|
|
-import { subjectList } from "@/ap/base";
|
|
|
+import { getSubjectList } from "@/ap/base";
|
|
|
import {
|
|
|
FilterFilled,
|
|
|
WarningFilled,
|
|
@@ -170,7 +170,7 @@ const emit = defineEmits(["search", "reset", "mark"]);
|
|
|
const userStore = useUserStore();
|
|
|
const reviewStore = useReviewStore();
|
|
|
|
|
|
-const fieldNames = { label: "subjectName", value: "subjectCode" };
|
|
|
+const fieldNames = { label: "name", value: "code" };
|
|
|
|
|
|
// tab
|
|
|
const reviewKey = ref(["1", "2", "3", "4"]);
|
|
@@ -187,7 +187,7 @@ async function switchTab(key: "review" | "history") {
|
|
|
// course data
|
|
|
const courses = ref<SubjectItem[]>([]);
|
|
|
async function getCourses() {
|
|
|
- const res = await subjectList({ examId: userStore.curExam.id });
|
|
|
+ const res = await getSubjectList({ examId: userStore.curExam.id });
|
|
|
courses.value = res || [];
|
|
|
}
|
|
|
|