提交 3a130d39 authored 作者: lhh's avatar lhh

update

上级 007b852b
......@@ -19,7 +19,6 @@ const list = ref<any[]>([])
const currentExam = computed(() => {
return list.value[0]
})
// 考试平台 URL
const examURL = computed(() => {
if (!currentExam.value) return ''
......@@ -51,11 +50,9 @@ onMounted(() => {
>{{ currentExam.exam_info.start_time }}{{ currentExam.exam_info.end_time }}</el-form-item
>
</el-form>
<div style="width: 100%; height: 100%" v-else>
<iframe style="width: 100%; height: 100%" allowfullscreen class="iframe" :src="examURL" frameborder="0"></iframe>
</div>
<!-- <teleport to=".lab-box"> -->
<!-- </teleport> -->
<!-- <teleport to=".lab-box">
<iframe allowfullscreen class="iframe" :src="examURL" frameborder="0"></iframe>
</teleport> -->
</template>
<el-empty description="暂无数据" v-else />
</template>
......@@ -343,7 +343,6 @@ function handleReportPreviewReady() {
</el-form>
<el-tabs type="border-card" v-model="tabActive">
<el-tab-pane :label="experimentInfo?.exam_status === 0 ? '实验训练' : '实验试题'" name="qa" lazy>
<!-- 判断问题 -->
<Exam :experiment_id="form.experiment_id" v-model="examURL" v-if="experimentInfo?.exam_status === 0"></Exam>
<Question :experiment_id="form.experiment_id" v-else></Question>
</el-tab-pane>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论