刘洋 hai 9 meses
pai
achega
e4c2340023

+ 1 - 1
src/render/Layout/index.vue

@@ -70,7 +70,7 @@ const isIndexPage = computed(() => {
   return route.name === "CurExam";
 });
 const backToIndexPage = () => {
-  router.back();
+  router.push({ name: "CurExam" });
 };
 
 const windowToMin = () => {

+ 1 - 1
src/render/utils/request.ts

@@ -90,7 +90,7 @@ function createService() {
       }
       const appStore = useAppStore();
       if (error.config?.loading) {
-        appStore.setLoading(true);
+        appStore.setLoading(false);
       }
       const err = (text: string) => {
         !rejectWhiteList.includes(error.config?.url) &&

+ 3 - 0
src/render/views/CurExam/index.vue

@@ -359,6 +359,9 @@ const _getExamList = () => {
       } else {
         examList.value = [];
       }
+      if (!userStore.curExam && examList.value.length === 1) {
+        userStore.setCurExam(examList.value[0]);
+      }
     }
   );
 };

+ 2 - 1
src/render/views/ScanManage/ImageView.vue

@@ -305,7 +305,8 @@ watch(
   () => dataCheckStore.curPageIndex,
   (val, oldval) => {
     if (val !== oldval) {
-      questions.value = [...(dataCheckStore.curPage?.question || [])];
+      if (!dataCheckStore.curPage || !dataCheckStore.curPage.question) return;
+      questions.value = [...(dataCheckStore.curPage?.question?.result || [])];
     }
   }
 );