|
@@ -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>
|