Skip to content

Commit

Permalink
fix(View)删除多余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
dioptric233 committed Aug 6, 2024
1 parent 954040b commit 0642c27
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pages/View/view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</el-skeleton>
</div>
<div class="flex flex-col h-650 ">
<div v-for="(q, index) in question" :key="q.serial_num">
<div v-for="q in question" :key="q.serial_num">
<!-- 根据问题类型渲染组件 -->
<div v-if="q.question_type === 1">
<el-skeleton animated :loading="loading">
Expand Down Expand Up @@ -78,7 +78,7 @@
</div>
</div>
<modal modal-id="QuestionnaireSubmit">
<template #title class="bg-red-200">提交问卷</template>
<template #title><span class="text-red-950">提交问卷</span></template>
<template #default>
你确认要提交问卷吗?
</template>
Expand All @@ -96,7 +96,6 @@
import {getUserAPI, setUserSubmitAPI} from "@/apis";
import {ElNotification} from "element-plus";
import {modal, showModal} from '@/components';
import Radio from "@/pages/View/radio.vue";
import radio from "@/pages/View/radio.vue";
import Checkbox from "@/pages/View/checkbox.vue";
import Fill from "@/pages/View/fill.vue";
Expand All @@ -112,16 +111,13 @@
const Key = 'JingHong';
const formData = ref();
const question = ref<any[]>([]);
const title = ref();
const reg = ref<string>();
const time = ref();
const loading = ref(true)
const submitData = ref({
id: null,
questions_list: [],
});
const route = useRoute();
const id = ref<Number | null >();
const loginStore = useMainStore().useLoginStore();
const decryptedId = ref<string | null>()
Expand Down

0 comments on commit 0642c27

Please sign in to comment.