|
@@ -10,6 +10,7 @@
|
|
|
<template v-for="item in lists">
|
|
|
<n-gi>
|
|
|
<survey-box
|
|
|
+ v-if="Number(item.display) === 1"
|
|
|
:id="item.id"
|
|
|
:title="item.name"
|
|
|
:content="item.description"
|
|
@@ -27,7 +28,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { watchEffect, ref, onMounted, computed } from "vue";
|
|
|
+import { ref, onMounted, computed } from "vue";
|
|
|
|
|
|
import subHeader from "../components/subHeader";
|
|
|
import sideMenu from "../components/sideMenu";
|
|
@@ -35,15 +36,9 @@ import heroSubTitle from "../components/heroSubTitle";
|
|
|
import surveyBox from "../components/surveyBox";
|
|
|
import { useSurveyStore } from "../store/survey";
|
|
|
const surveyStore = useSurveyStore();
|
|
|
-
|
|
|
const lists = computed(() => surveyStore.lists);
|
|
|
-
|
|
|
-const title = ref("detail");
|
|
|
const YGap = ref(50);
|
|
|
|
|
|
-watchEffect(() => {
|
|
|
- document.title = title.value;
|
|
|
-});
|
|
|
onMounted(async () => {
|
|
|
try {
|
|
|
await surveyStore.getLists();
|
|
@@ -51,7 +46,6 @@ onMounted(async () => {
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
-
|
|
|
<style lang="scss" scoped>
|
|
|
.detail {
|
|
|
--main-show-case-background: #ddd5d5;
|