npm --registry https://registry.npmjs.org install @jx3box/jx3box-comment-ui
import Comment from "@jx3box/jx3box-comment-ui/src/Comment.vue";
<Comment :id="id" category="wiki" order="desc" />
为了对消息通知友好, 一般消息 wp_messages 表中的sourceType需要什么就填什么,[文章除外,文章类型使用 'post', 服务器会进行处理,需要二次查询文章具体类别]
比如对于试卷的评论组件, wp_messages 表中的sourceType需要的是 paper 那么 category="paper"
对gh-pages发布release
<script src="https://cdn.jsdelivr.net/gh/JX3BOX/jx3box-comment-ui@1.0.0/comment.umd.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/JX3BOX/jx3box-comment-ui@1.0.0/comment.css" />