File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/views/article/components Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 17
17
"highlight.js" : " ^11.5.0" ,
18
18
"highlightjs" : " ^9.16.2" ,
19
19
"js-cookie" : " ^3.0.1" ,
20
+ "marked" : " ^4.1.0" ,
20
21
"mavon-editor" : " ^3.0.0-beta" ,
21
22
"node-sass" : " ^7.0.1" ,
22
23
"nprogress" : " ^0.2.0" ,
Original file line number Diff line number Diff line change 10
10
<div class =" card-header" >
11
11
<!-- todo add isAuthor label -->
12
12
<span >
13
- <b >{{comment.author}}</b >
14
- <span >{{comment.created_time}}</span >
13
+ <b >{{ comment.comment_order}} {{comment.author}}</b ><span >{{comment.created_time}}</span >
15
14
16
15
</span >
17
16
<el-button class =" button" text >Operation button</el-button >
18
17
</div >
19
18
</template >
20
- {{comment.content}}
19
+ <div v-if =" comment.parent" >
20
+ <span > replied to <b >{{ comment.comment_order}} {{comment.author}}</b ></span >
21
+
22
+ </div >
23
+ <div v-hlcode v-html =" comment.content" ></div >
21
24
</el-card >
22
25
</div >
23
26
You can’t perform that action at this time.
0 commit comments