2
0
Эх сурвалжийг харах

研究生考试需要停留在上次阅卷的位置

Michael Wang 3 жил өмнө
parent
commit
7970ef2784

+ 13 - 12
src/features/mark/CommonMarkBody.vue

@@ -55,7 +55,7 @@
 </template>
 
 <script setup lang="ts">
-import { onMounted, onUnmounted, reactive, watch, watchEffect } from "vue";
+import { onMounted, onUnmounted, reactive, watch, watchEffect } from "vue-demi";
 import { store } from "@/store/store";
 import MarkDrawTrack from "./MarkDrawTrack.vue";
 import type {
@@ -418,17 +418,18 @@ const renderPaperAndMark = async () => {
     } else {
       await processSplitConfig();
     }
-    await new Promise((res) => setTimeout(res, 700));
-    const container = <HTMLDivElement>(
-      document.querySelector(".mark-body-container")
-    );
-    addTimeout(() => {
-      container?.scrollTo({
-        top: 0,
-        left: 0,
-        behavior: "smooth",
-      });
-    }, 10);
+    // 研究生考试需要停留在上次阅卷的位置,所以注释掉下面的代码
+    // await new Promise((res) => setTimeout(res, 700));
+    // const container = <HTMLDivElement>(
+    //   document.querySelector(".mark-body-container")
+    // );
+    // addTimeout(() => {
+    //   container?.scrollTo({
+    //     top: 0,
+    //     left: 0,
+    //     behavior: "smooth",
+    //   });
+    // }, 10);
   } catch (error) {
     sliceImagesWithTrackList.splice(0);
     console.trace("render error ", error);