|
@@ -3,7 +3,7 @@ import dayjs from "dayjs";
|
|
|
import Api from '@/api/api';
|
|
|
import router from "@/router/"
|
|
|
import store from "@/store/"
|
|
|
-
|
|
|
+import { Toast } from "vant";
|
|
|
export function useExamTest() {
|
|
|
let letter = ["A", "B", "C", "D", "E", "F"]
|
|
|
let interfaceErrVisible = ref(false)
|
|
@@ -653,6 +653,12 @@ export function useExamTest() {
|
|
|
gs: router.currentRoute.value.query.gs as string,
|
|
|
subject: Number(router.currentRoute.value.query.subject)
|
|
|
}
|
|
|
+ let loadToast = Toast({
|
|
|
+ type:"loading",
|
|
|
+ message:"加载中",
|
|
|
+ duration:0
|
|
|
+ })
|
|
|
+
|
|
|
|
|
|
Api.openApiquestionInfoSelectTestQuestionInfo(params).then((res) => {
|
|
|
res.data.rows.forEach((item) => {
|
|
@@ -675,6 +681,7 @@ export function useExamTest() {
|
|
|
|
|
|
}
|
|
|
list.value = res.data.rows;
|
|
|
+ loadToast.clear()
|
|
|
}).catch(err => {
|
|
|
interfaceErrVisible.value = true
|
|
|
});
|