刘洋 8 months ago
parent
commit
2abc046283
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/render/views/DataCheck/QuestionPanel.vue

+ 6 - 1
src/render/views/DataCheck/QuestionPanel.vue

@@ -100,7 +100,7 @@
 </template>
 
 <script setup lang="ts" name="QuestionPanel">
-import { computed, ref, watch } from "vue";
+import { computed, ref, watch, onMounted } from "vue";
 import { message } from "ant-design-vue";
 import { SwapOutlined } from "@ant-design/icons-vue";
 import { QuestionInfo } from "./types";
@@ -309,6 +309,11 @@ watch(
     examStatus.value = val.examStatus;
   }
 );
+onMounted(() => {
+  if (props.info?.examStatus) {
+    examStatus.value = props.info?.examStatus;
+  }
+});
 </script>
 
 <style lang="less" scoped>