fix: frontend

This commit is contained in:
Rogee
2024-09-20 01:04:28 +08:00
parent b8499ca97d
commit 146b0ed55a
42 changed files with 4276 additions and 44 deletions

25
home.text Normal file
View 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>