刘洋 8 months ago
parent
commit
4396b7ba1c
2 changed files with 5 additions and 2 deletions
  1. 1 1
      src/render/store/modules/user/index.ts
  2. 4 1
      src/render/views/Audit/Main/index.vue

+ 1 - 1
src/render/store/modules/user/index.ts

@@ -52,7 +52,7 @@ export const useUserStore = defineStore("user", {
     //   updateTime: 0,
     // },
     curExam: null,
-    imageCheckLoopTime: 0,
+    imageCheckLoopTime: 1,
     recogFillSet: {
       fillColor: "#f53f3f ",
       fillShow: true,

+ 4 - 1
src/render/views/Audit/Main/index.vue

@@ -149,7 +149,10 @@ function onSwitchExam() {
   selectExamDialogRef.value?.open();
 }
 
-const imageCheckLoopTime = ref(userStore.imageCheckLoopTime || undefined);
+const imageCheckLoopTime = ref(userStore.imageCheckLoopTime || 1);
+if (!userStore.imageCheckLoopTime) {
+  userStore.setImageCheckLoopTime(1);
+}
 function onSetLoopTime() {
   if (!imageCheckLoopTime.value) {
     message.error("请输入轮播时间");