thread create

This commit is contained in:
2022-01-31 02:34:36 +08:00
parent 3686e682f6
commit 3c261aa690
5 changed files with 70 additions and 16 deletions

View File

@@ -2,7 +2,8 @@
.post-list
ul(v-if="data.length")
li(v-for="item in data", :key="item._id")
NuxtLink.avatar(:to="`/user/${item.user._id}`")
NuxtLink(:to="`/user/${item.user._id}`")
img.avatar(:src="item.user.avatar")
.content
.title {{ item.user.name }}
.info

View File

@@ -2,7 +2,8 @@
.thread-list
ul(v-if="data.length")
li(v-for="item in data", :key="item._id")
NuxtLink.avatar(:to="'/user/' + item.user._id")
NuxtLink(:to="'/user/' + item.user._id")
img.avatar(:src="item.user.avatar")
NuxtLink.content(:to="'/thread/' + item._id")
.title {{ item.title }}
.info