fix: frontend
This commit is contained in:
25
home.text
Normal file
25
home.text
Normal file
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div class="flex flex-col space-y-3">
|
||||
<ListItem v-for="item in items" :key="item.id" :item="item" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PostItem } from '@/types'
|
||||
import { onMounted, ref } from 'vue'
|
||||
import ListItem from '../components/ListItem.vue'
|
||||
import data from '../data'
|
||||
import { } from
|
||||
|
||||
const items = ref<PostItem[]>([])
|
||||
|
||||
onMounted(() => {
|
||||
items.value = [
|
||||
{
|
||||
id: 1,
|
||||
content: "Hello Man\nHow are you doing",
|
||||
medias: data,
|
||||
},
|
||||
]
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user