diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 18db5e2..3f6e53c 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -53,6 +53,15 @@ const saveM = () => { + + 正文 + + {{ detail.children?.material[current].content }} + + 复制 + + + @@ -71,15 +80,6 @@ const saveM = () => { - - 正文 - - {{ detail.children?.material[current].content }} - - 复制 - - - 素材(请按顺序下载&发布) diff --git a/src/pages/taskDetails/components/CollectMaterials.vue b/src/pages/taskDetails/components/CollectMaterials.vue index cbc9342..72320b5 100644 --- a/src/pages/taskDetails/components/CollectMaterials.vue +++ b/src/pages/taskDetails/components/CollectMaterials.vue @@ -40,6 +40,14 @@ const list = computed(() => data.children.material[current.value].comment?.flatM {{ data.children.material[current].title }} + + + 正文: + + + {{ data.children.material[current].content }} + + @@ -49,14 +57,6 @@ const list = computed(() => data.children.material[current.value].comment?.flatM {{ data.children.material[current].tags_arr.map(item => `#${item}`).join(' ') }} - - - 正文: - - - {{ data.children.material[current].content }} - - 素材: diff --git a/src/pages/taskDetails/components/TaskDetails.vue b/src/pages/taskDetails/components/TaskDetails.vue index 04bb588..e334fcb 100644 --- a/src/pages/taskDetails/components/TaskDetails.vue +++ b/src/pages/taskDetails/components/TaskDetails.vue @@ -5,6 +5,7 @@ import XImage from "../../../components/XImage.vue"; import XSquareCarouselImage from "../../../components/XSquareCarouselImage.vue"; import HF_ICON from "../../../static/icons/icon-wrapper.png"; import {copy} from "../../../utils/uils.js"; +import {computed} from "vue"; const {data, home} = defineProps({ data: { @@ -16,6 +17,8 @@ const {data, home} = defineProps({ default: false } }); + +const list = computed(() => [data.comment_arr]?.flatMap(v => v.children ? [v, ...v.children] : [v]));