|
@@ -31,7 +31,7 @@
|
|
v-loading="state.question.loading"
|
|
v-loading="state.question.loading"
|
|
>
|
|
>
|
|
<template v-if="state.question.data?.length > 0">
|
|
<template v-if="state.question.data?.length > 0">
|
|
- <listCom :data="state.question.data" />
|
|
|
|
|
|
+ <listCom :data="state.question.data" :showVideo="state.showVideo" />
|
|
<!-- 分页控件 -->
|
|
<!-- 分页控件 -->
|
|
<div class="mt-6 flex justify-center">
|
|
<div class="mt-6 flex justify-center">
|
|
<div class="q-pa-lg flex-center flex">
|
|
<div class="q-pa-lg flex-center flex">
|
|
@@ -81,6 +81,7 @@ const state: any = reactive({
|
|
page: 1,
|
|
page: 1,
|
|
size: 10,
|
|
size: 10,
|
|
},
|
|
},
|
|
|
|
+ showVideo: false,
|
|
})
|
|
})
|
|
const initQuestion = () => {
|
|
const initQuestion = () => {
|
|
state.question.loading = true
|
|
state.question.loading = true
|
|
@@ -102,6 +103,9 @@ const dataCpt = computed(() => {
|
|
)
|
|
)
|
|
})
|
|
})
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
|
+ if (route.query.showVideo) {
|
|
|
|
+ state.showVideo = route.query.showVideo
|
|
|
|
+ }
|
|
initQuestion()
|
|
initQuestion()
|
|
})
|
|
})
|
|
onBeforeMount(() => {
|
|
onBeforeMount(() => {
|