added posts
This commit is contained in:
@@ -18,8 +18,13 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div v-for="post in posts">
|
||||||
<img src="/img/epic.jpeg" />
|
<h2>{{ post.title }}</h2>
|
||||||
|
<p>By: {{ post.author.username }}</p>
|
||||||
|
<div>{{ post.content }}</div>
|
||||||
|
<small
|
||||||
|
>Created at: {{ new Date(post.CreatedAt).toLocaleString() }}</small
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user