刘洋 8 月之前
父节点
当前提交
2abc046283
共有 1 个文件被更改,包括 6 次插入1 次删除
  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>