12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <script setup lang='ts'>
- const router = useRouter()
- const props = defineProps<{
- id: string
- }>()
- const detail = ref(null)
- await request({
- url: '/dyaw/ctfx/detail',
- data: {
- dc_id: props.id
- }
- }).then(
- res => {
- if (res.code === "1") {
- detail.value = res.data.one_info
- }
- }
- )
- </script>
- <template>
- <div class="w-full h-full flex flex-col">
- <div class="flex justify-between">
- <div class="space-x-2 text-blue-700 flex items-center">
- <i:cil:home />
- <span>首页</span>
- <span>/</span>
- <span>错题分析</span>
- <span>/</span>
- <span>错题列表</span>
- <span>/</span>
- <span class="text-gray-600">详情</span>
- </div>
- <el-button type="primary" @click="router.back()">返回</el-button>
- </div>
- <cuoti-detail v-if="detail" :d="detail" />
- </div>
- </template>
|