File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 71
71
<img class =" me-view-picture" :src =" c.author.avatar" ></img >
72
72
</a >
73
73
<div class =" me-view-info" >
74
- <span >{{c.author.nickname}}</span >
74
+ <span class = " me-view-nickname " >{{c.author.nickname}}</span >
75
75
<div class =" me-view-meta" >
76
76
<span >{{comments.length - index}}楼</span >
77
77
<span >{{c.createDate}}</span >
@@ -170,8 +170,8 @@ export default {
170
170
171
171
publishComment (that .comment ).then (data => {
172
172
that .$message ({type: ' success' , message: ' 评论成功' ,showClose: true })
173
- that .comments .push (data .data )
174
-
173
+ that .comments .unshift (data .data )
174
+ that . comment . content = ' '
175
175
}).catch (error => {
176
176
if (error !== ' error' ){
177
177
that .$message ({type: ' error' , message: ' 评论失败' ,showClose: true })
@@ -224,8 +224,8 @@ export default {
224
224
vertical-align : middle ;
225
225
}
226
226
.me-view-picture {
227
- width : 48 px ;
228
- height : 48 px ;
227
+ width : 40 px ;
228
+ height : 40 px ;
229
229
border : 1px solid #ddd ;
230
230
border-radius : 50% ;
231
231
vertical-align : middle ;
@@ -279,6 +279,9 @@ export default {
279
279
margin : 10px 0 ;
280
280
vertical-align : middle ;
281
281
}
282
+ .me-view-nickname {
283
+ font-size : 14px ;
284
+ }
282
285
.me-view-comment-content {
283
286
line-height : 1.5 ;
284
287
}
You can’t perform that action at this time.
0 commit comments