|
|
|
@ -1,122 +1,150 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class=communitybase>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class=leftinfo>
|
|
|
|
|
<div class=focus style="position: absolute; font-weight: bold; font-size: 18px; left:8%;top:1%">
|
|
|
|
|
<div class=focus style="position: absolute; font-weight: bold; font-size: 18px; left:8%;top:1%">
|
|
|
|
|
你的关注
|
|
|
|
|
</div>
|
|
|
|
|
<div class=num style="position:absolute; font-size: 14px; right:20%; top:1.5%; color: #45D4CF;">
|
|
|
|
|
{{myfollows.weidu}}条新动态
|
|
|
|
|
</div>
|
|
|
|
|
<div style="top:6%;position: absolute;width: 100%;">
|
|
|
|
|
<div class="alldongtai"
|
|
|
|
|
style="display: flex; flex-direction: row;justify-content:center; align-items: center;position: relative;"
|
|
|
|
|
@click="alldongtai">
|
|
|
|
|
<el-icon color="#45D4CF" size="30px">
|
|
|
|
|
<Grid />
|
|
|
|
|
</el-icon>
|
|
|
|
|
<div style="margin-left: 40px; font-weight: bold; font-size: 16px;">全部动态</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class=num style="position:absolute; font-size: 14px; right:20%; top:1.5%; color: #45D4CF;">
|
|
|
|
|
{{myfollows.weidu}}条新动态
|
|
|
|
|
</div>
|
|
|
|
|
<div class=followslist style="position:absolute;display: flex;flex-direction: column;top:7%;width:100%;gap:7%">
|
|
|
|
|
<div>
|
|
|
|
|
<div class= "alldongtai" style="display: flex; flex-direction: row;justify-content:center; position: relative; align-items: center;">
|
|
|
|
|
<el-icon color="#45D4CF" size="30px"> <Grid /></el-icon>
|
|
|
|
|
<div style="margin-left: 40px; font-weight: bold; font-size: 16px;">全部动态</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr style="width: 100%; height: 0.001px; background-color: #D8D8D8;margin-top: 3%;">
|
|
|
|
|
</div>
|
|
|
|
|
<div v-for="(follow, index) in myfollows.list" :key="index" style="margin-top: 8%;">
|
|
|
|
|
<div class="follows" style="display: flex; flex-direction: row; justify-content: center; align-items: center; position: relative;width: 100%;">
|
|
|
|
|
<img class="touxiang" src="../../assets/pictures/touxiang.png" style="width: 18%; height: auto;" />
|
|
|
|
|
<div style="margin-left: 40px; font-weight: bold; font-size: 16px;">{{ follow.name }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr style="width: 100%; height: 0.001px; background-color: #D8D8D8; margin-top: 5%;">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class=middle>
|
|
|
|
|
|
|
|
|
|
<div class="post-list">
|
|
|
|
|
<div
|
|
|
|
|
v-for="(post, index) in posts"
|
|
|
|
|
:key="index"
|
|
|
|
|
class="post-card"
|
|
|
|
|
>
|
|
|
|
|
<PostCard
|
|
|
|
|
:avatarUrl="post.avatarUrl"
|
|
|
|
|
:username="post.username"
|
|
|
|
|
:timestamp="post.timestamp"
|
|
|
|
|
:content="post.content"
|
|
|
|
|
:imageUrl="post.imageUrl"
|
|
|
|
|
:likeCount="post.likeCount"
|
|
|
|
|
:commentCount="post.commentCount"
|
|
|
|
|
:isCommentsVisible="post.isCommentsVisible"
|
|
|
|
|
:comments="post.comments"
|
|
|
|
|
@updateLikeCount="updateLikeCount(index, $event)"
|
|
|
|
|
@updateCommentCount="updateCommentCount(index, $event)"
|
|
|
|
|
@toggleCommentsVisibility="toggleCommentsVisibility(index)"
|
|
|
|
|
@addComment="addComment(index, $event)"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<hr style="width: 100%; height: 0.001px; background-color: #D8D8D8;margin-top: 1%;">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class=followslist
|
|
|
|
|
style="position:absolute;display: flex;flex-direction: column;top:10%;width:100%;height: 100%;gap:2%; ">
|
|
|
|
|
|
|
|
|
|
<div v-for="(follow, index) in myfollows.list" :key="index" style="width: 100%;">
|
|
|
|
|
<div class="follows"
|
|
|
|
|
style="display: flex; flex-direction: row; justify-content: center; align-items: center; position: relative;height: 120%;"
|
|
|
|
|
@mouseover="hoverIndex = index" @mouseleave="hoverIndex = -1" @click="fllowsClick(follow.userid,index)"
|
|
|
|
|
:class="{'selected': selectedIndex === index}">
|
|
|
|
|
<img class="touxiang" src="../../assets/pictures/touxiang.png" style="left:20%;width: 15%; height: auto;" />
|
|
|
|
|
<div style="margin-left: 40px; font-weight: bold; font-size: 16px;">{{ follow.name }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class=rightheat style="display: flex;flex-direction:column;">
|
|
|
|
|
<hr style="width: 100%; height: 0.001px; background-color: #D8D8D8; margin-top: 1%;">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div style="position:relative; top:1%; display: flex;flex-direction:row;justify-content:center;gap:15px">
|
|
|
|
|
<el-icon color="red" size="30px"><Odometer /></el-icon>
|
|
|
|
|
<div style="font-weight:550; font-size: 18px;">热门动态</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class= heatlist style="margin-top:20px;display: flex;flex-direction:row;">
|
|
|
|
|
<div style="position:relative; display: flex;flex-direction:column; color: white; font-weight: bold;margin-left: 20px ;gap:11px">
|
|
|
|
|
<div class=Hotsearchnum style="background-color:red;">1</div>
|
|
|
|
|
<div class=Hotsearchnum style="background-color:#FF7E38;">2</div>
|
|
|
|
|
<div class=Hotsearchnum style="background-color:#FFC74F;">3</div>
|
|
|
|
|
<div class=Hotsearchnum style="background-color:gray;">4</div>
|
|
|
|
|
<div class=Hotsearchnum style="background-color:gray;">5</div>
|
|
|
|
|
<div class=Hotsearchnum style="background-color:gray;">6</div>
|
|
|
|
|
<div class=Hotsearchnum style="background-color:gray;">7</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style=" font-size: 14px;font-weight:500;margin-left: 30px;display: flex;flex-direction:column;gap:17px">
|
|
|
|
|
<li style="list-style-type: none;" v-for="(item, index) in HotsearchList" :key="index">{{ item }}</li>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="middle">
|
|
|
|
|
<PostForm @post-submitted="addPost" />
|
|
|
|
|
<div class="post-list">
|
|
|
|
|
<!-- 使用 transition-group 来包裹 v-for 渲染的元素 -->
|
|
|
|
|
<transition-group name="fade" tag="div">
|
|
|
|
|
<div v-for="(post, index) in filteredPosts" :key="post.id" class="post-card">
|
|
|
|
|
<PostCard :avatarUrl="post.avatarUrl" :username="post.username" :timestamp="post.timestamp"
|
|
|
|
|
:content="post.content" :imageUrl="post.imageUrl" :likeCount="post.likeCount"
|
|
|
|
|
:commentCount="post.commentCount" :isCommentsVisible="post.isCommentsVisible" :comments="post.comments"
|
|
|
|
|
@updateLikeCount="updateLikeCount(index, $event)" @updateCommentCount="updateCommentCount(index, $event)"
|
|
|
|
|
@toggleCommentsVisibility="toggleCommentsVisibility(index)" @addComment="addComment(index, $event)" />
|
|
|
|
|
</div>
|
|
|
|
|
</transition-group>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width: 100%; height: 1px; background: linear-gradient(to right, transparent, gray, transparent);margin-top: 20px"></div>
|
|
|
|
|
<div style="position:relative; top:1%; display: flex;flex-direction:row;justify-content:center;gap:15px">
|
|
|
|
|
<el-icon color="#FEB7D9" size="25px"><Notebook /></el-icon>
|
|
|
|
|
<div style="font-weight:550; font-size: 18px;">热门家族故事</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class=rightheat style="display: flex;flex-direction:column;">
|
|
|
|
|
|
|
|
|
|
<div style="position:relative; top:1%; display: flex;flex-direction:row;justify-content:center;gap:15px">
|
|
|
|
|
<el-icon color="red" size="30px">
|
|
|
|
|
<Odometer />
|
|
|
|
|
</el-icon>
|
|
|
|
|
<div style="font-weight:550; font-size: 18px;">热门动态</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class=heatlist style="margin-top:20px;display: flex;flex-direction:row;">
|
|
|
|
|
<div
|
|
|
|
|
style="position:relative; display: flex;flex-direction:column; color: white; font-weight: bold;margin-left: 20px ;gap:51px">
|
|
|
|
|
<div class=Hotsearchnum style="background-color:red;">1</div>
|
|
|
|
|
<div class=Hotsearchnum style="background-color:#ff8e51;">2</div>
|
|
|
|
|
<div class=Hotsearchnum style="background-color:#ffc74fd2;">3</div>
|
|
|
|
|
<div class=Hotsearchnum style="background-color:gray;">4</div>
|
|
|
|
|
<div class=Hotsearchnum style="background-color:gray;">5</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="familystorelist" style="margin-top: 20px; display: flex; justify-content: center; flex-direction: column; gap: 10px;">
|
|
|
|
|
<div v-for="(story, index) in familystories" :key="index" class="familystore" style="width: 95%; height: 70px; background-color: rgba(255, 225, 240, 0.7); border-radius: 10%; position: relative;">
|
|
|
|
|
<img class="touxiang" src="../../assets/pictures/touxiang.png" />
|
|
|
|
|
<div class="familytitle">{{ story.title }}</div>
|
|
|
|
|
<div class="familycontent">{{ story.content }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
style="font-size: 14px; font-weight: 500; margin-left: 30px; display: flex; flex-direction: column; gap: 17px;">
|
|
|
|
|
<div
|
|
|
|
|
style="list-style-type: none; width: 95%; height: 20%; background-color: rgba(255, 225, 240, 0.7); border-radius: 10%; position: relative;"
|
|
|
|
|
v-for="(Hotsearch, index) in HotsearchList"
|
|
|
|
|
:key="index"
|
|
|
|
|
@click="checkbypostid(Hotsearch.postid)">
|
|
|
|
|
{{ Hotsearch.content }}
|
|
|
|
|
{{ Hotsearch.postid }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
style="width: 100%; height: 1px; background: linear-gradient(to right, transparent, gray, transparent);margin-top: 20px">
|
|
|
|
|
</div>
|
|
|
|
|
<div style="position:relative; top:1%; display: flex;flex-direction:row;justify-content:center;gap:15px">
|
|
|
|
|
<el-icon color="#FEB7D9" size="25px">
|
|
|
|
|
<Notebook />
|
|
|
|
|
</el-icon>
|
|
|
|
|
<div style="font-weight:550; font-size: 18px;">热门家族故事</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="familystorelist"
|
|
|
|
|
style="margin-top: 20px; display: flex; justify-content: center; flex-direction: column; gap: 10px;">
|
|
|
|
|
<div v-for="(story, index) in familystories" :key="index" class="familystore"
|
|
|
|
|
style="width: 95%; height: 70px; background-color: rgba(255, 225, 240, 0.7); border-radius: 10%; position: relative;">
|
|
|
|
|
<img class="touxiang" src="../../assets/pictures/touxiang.png" />
|
|
|
|
|
<div class="familytitle">{{ story.username }}</div>
|
|
|
|
|
<div class="familycontent">{{ story.content }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import PostCard from '../../components/PostCard.vue';
|
|
|
|
|
export default {
|
|
|
|
|
name: 'CommunityIndex', // 添加组件名称
|
|
|
|
|
components: { PostCard },
|
|
|
|
|
// 其他组件选项
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isLiked: false,
|
|
|
|
|
HotsearchList: ["麦琳爱吃烧鸡","马思唯收官战","国足绝杀","再见爱人","杨子黄圣依","黄磊的豆角","邪恶栀子花计划"],
|
|
|
|
|
familystories: [
|
|
|
|
|
{ title: '我是怎么起家的', content: '我的父母来自于印度,后面通过自己的打拼...' },
|
|
|
|
|
{ title: '我的祖父', content: '我的祖父曾经参加过二战,有一次在诺曼底...' },
|
|
|
|
|
{ title: '我竟然是皇室成员!', content: '在我的18岁生日上,妈妈告诉我祖母其实是...' },
|
|
|
|
|
|
|
|
|
|
import PostCard from '../../components/PostCard.vue';
|
|
|
|
|
import PostForm from './Postform.vue';
|
|
|
|
|
export default {
|
|
|
|
|
name: 'CommunityIndex', // 添加组件名称
|
|
|
|
|
components: { PostCard, PostForm },
|
|
|
|
|
// 其他组件选项
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
HotsearchList: [{postid: 1,username:"麦琳",content:"啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊", },
|
|
|
|
|
{username:"马思唯",content:"黑马季节收官战无敌", postid: 7,},
|
|
|
|
|
{username:"马思唯",content:"黑马季节收官战无敌", postid: 7,}, {username:"马思唯",content:"黑马季节", postid:7},
|
|
|
|
|
{username:"马思唯",content:"黑马季hdsajkdhkashjd", postid:3}],
|
|
|
|
|
familystories: [
|
|
|
|
|
{ username: '查理一世', content: '我的父母来自于印度,后面通过自己的打拼...' },
|
|
|
|
|
{ username: '亨利二世', content: '我的祖父曾经参加过二战,有一次在诺曼底...' },
|
|
|
|
|
{ username: '查理九世', content: '在我的18岁生日上,妈妈告诉我祖母其实是...' },
|
|
|
|
|
{ username: '伊丽莎白', content: '在我的18岁生日上,妈妈告诉我祖母其实是...' },
|
|
|
|
|
{ username: '莎士比亚', content: '在我的18岁生日上,妈妈告诉我祖母其实是...' },
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
myfollows:{weidu:7,list:[{name:'乔一鱼'},{name:'邓紫棋'},{name:'马思唯'},{name:'陶喆'}]},
|
|
|
|
|
posts: [
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
myfollows: { weidu: 7, list: [{ name: '乔一鱼', userid: 1 }, { name: '邓紫棋', userid: 2 }, { name: '马思唯', userid: 3 }, { name: '陶喆', userid: 5 }] },
|
|
|
|
|
hoverIndex: -1,
|
|
|
|
|
selectedIndex: -1,
|
|
|
|
|
selecteduserid: 0,
|
|
|
|
|
selectedbyuserid:false,
|
|
|
|
|
selectedbypostid:false,
|
|
|
|
|
posts: [
|
|
|
|
|
{
|
|
|
|
|
userid: 1,
|
|
|
|
|
postid: 1,
|
|
|
|
|
avatarUrl: 'https://via.placeholder.com/40',
|
|
|
|
|
username: '小明',
|
|
|
|
|
username: '乔一鱼',
|
|
|
|
|
timestamp: '1小时前',
|
|
|
|
|
content: '今天的天气真好,适合出去玩!',
|
|
|
|
|
imageUrl: 'https://via.placeholder.com/400x200',
|
|
|
|
@ -126,6 +154,8 @@ export default {
|
|
|
|
|
comments: [] // 存储评论
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
userid: 2,
|
|
|
|
|
postid: 2,
|
|
|
|
|
avatarUrl: 'https://via.placeholder.com/40',
|
|
|
|
|
username: '小红',
|
|
|
|
|
timestamp: '2小时前',
|
|
|
|
@ -136,18 +166,119 @@ export default {
|
|
|
|
|
isCommentsVisible: false,
|
|
|
|
|
comments: [] // 存储评论
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
userid: 3,
|
|
|
|
|
postid: 3,
|
|
|
|
|
avatarUrl: 'https://via.placeholder.com/40',
|
|
|
|
|
username: '马思唯',
|
|
|
|
|
timestamp: '1小时前',
|
|
|
|
|
content: '敬请期待我的新专辑《乐透人生》',
|
|
|
|
|
imageUrl: 'https://via.placeholder.com/400x200',
|
|
|
|
|
likeCount: 24,
|
|
|
|
|
commentCount: 6,
|
|
|
|
|
isCommentsVisible: false,
|
|
|
|
|
comments: [] // 存储评论
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
userid: 3,
|
|
|
|
|
postid: 4,
|
|
|
|
|
avatarUrl: 'https://via.placeholder.com/40',
|
|
|
|
|
username: '马思唯',
|
|
|
|
|
timestamp: '1小时前',
|
|
|
|
|
content: '我在阿姆斯特丹当个画家虽然口袋里钱不多,就在梵高博物馆外等她从我身边路过',
|
|
|
|
|
imageUrl: 'https://via.placeholder.com/400x200',
|
|
|
|
|
likeCount: 24,
|
|
|
|
|
commentCount: 6,
|
|
|
|
|
isCommentsVisible: false,
|
|
|
|
|
comments: [] // 存储评论
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
userid: 4,
|
|
|
|
|
postid: 5,
|
|
|
|
|
avatarUrl: 'https://via.placeholder.com/40',
|
|
|
|
|
username: '邓紫棋',
|
|
|
|
|
timestamp: '1小时前',
|
|
|
|
|
content: '诶呀!!!!!!!!',
|
|
|
|
|
imageUrl: 'https://via.placeholder.com/400x200',
|
|
|
|
|
likeCount: 24,
|
|
|
|
|
commentCount: 6,
|
|
|
|
|
isCommentsVisible: false,
|
|
|
|
|
comments: [] // 存储评论
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
userid: 5,
|
|
|
|
|
postid: 6,
|
|
|
|
|
avatarUrl: 'https://via.placeholder.com/40',
|
|
|
|
|
username: '陶喆',
|
|
|
|
|
timestamp: '1小时前',
|
|
|
|
|
content: '啊啊哦哦诶诶啊啊',
|
|
|
|
|
imageUrl: 'https://via.placeholder.com/400x200',
|
|
|
|
|
likeCount: 24,
|
|
|
|
|
commentCount: 6,
|
|
|
|
|
isCommentsVisible: false,
|
|
|
|
|
comments: [] // 存储评论
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
userid: 3,
|
|
|
|
|
postid: 7,
|
|
|
|
|
avatarUrl: 'https://via.placeholder.com/40',
|
|
|
|
|
username: '马思唯',
|
|
|
|
|
timestamp: '1小时前',
|
|
|
|
|
content: '黑马季节收官战无敌',
|
|
|
|
|
imageUrl: 'https://via.placeholder.com/400x200',
|
|
|
|
|
likeCount: 24,
|
|
|
|
|
commentCount: 6,
|
|
|
|
|
isCommentsVisible: false,
|
|
|
|
|
comments: [] // 存储评论
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
// 计算属性:过滤帖子数据,依据 showUser3Posts 的值
|
|
|
|
|
filteredPosts() {
|
|
|
|
|
if (this.selectedbyuserid) {
|
|
|
|
|
return this.posts.filter(post => post.userid === this.selecteduserid);
|
|
|
|
|
}
|
|
|
|
|
else if(this.selectedbypostid){
|
|
|
|
|
return this.posts.filter(post => post.postid === this.selectedpostid);
|
|
|
|
|
}
|
|
|
|
|
return this.posts;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
checkbypostid(postid){
|
|
|
|
|
// 打印出来检查
|
|
|
|
|
this.selectedbyuserid =false;
|
|
|
|
|
this.selectedbypostid = true;
|
|
|
|
|
console.log('点击事件触发,postid:', this.selectedpostid);
|
|
|
|
|
this.selectedpostid=postid;
|
|
|
|
|
},
|
|
|
|
|
alldongtai() {
|
|
|
|
|
this.selectedbyuserid = true;
|
|
|
|
|
this.selecteduserid = 0;
|
|
|
|
|
this.selectedIndex = -1;
|
|
|
|
|
this.$message("查看全部动态");
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
fllowsClick(userid, index) {
|
|
|
|
|
this.$message("查看userid:" + userid);
|
|
|
|
|
this.selectedbyuserid = true;
|
|
|
|
|
this.selectedIndex = index; // 点击后设置选中的项
|
|
|
|
|
this.selecteduserid = userid;
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
updateLikeCount(index, newLikeCount) {
|
|
|
|
|
this.posts[index].likeCount = newLikeCount;
|
|
|
|
|
this.filteredPosts[index].likeCount = newLikeCount;
|
|
|
|
|
},
|
|
|
|
|
updateCommentCount(index, newCommentCount) {
|
|
|
|
|
this.posts[index].commentCount = newCommentCount;
|
|
|
|
|
this.filteredPosts[index].commentCount = newCommentCount;
|
|
|
|
|
},
|
|
|
|
|
toggleCommentsVisibility(index) {
|
|
|
|
|
this.posts[index].isCommentsVisible = !this.posts[index].isCommentsVisible;
|
|
|
|
|
this.$message("haha" + index);
|
|
|
|
|
this.filteredPosts[index].isCommentsVisible = !this.filteredPosts[index].isCommentsVisible;
|
|
|
|
|
},
|
|
|
|
|
addComment(index, commentText) {
|
|
|
|
|
this.posts[index].comments.push({
|
|
|
|
@ -157,7 +288,7 @@ export default {
|
|
|
|
|
this.posts[index].commentCount += 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|