添加评论功能
This commit is contained in:
parent
3121a2bdb5
commit
4241d13d33
@ -493,6 +493,9 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (data.status === 1) {
|
if (data.status === 1) {
|
||||||
|
this.replyID = null
|
||||||
|
this.replyLastID = null
|
||||||
|
window.location.hash = '_'
|
||||||
// 获取评论
|
// 获取评论
|
||||||
const tmp = await this.$axios.get(process.env.baseURL + `/public/comments/post?ID=${postID}`)
|
const tmp = await this.$axios.get(process.env.baseURL + `/public/comments/post?ID=${postID}`)
|
||||||
const comments = tmp.data.result.list || []
|
const comments = tmp.data.result.list || []
|
||||||
@ -685,6 +688,7 @@ export default {
|
|||||||
|
|
||||||
.comment-content
|
.comment-content
|
||||||
width 100%
|
width 100%
|
||||||
|
padding 5px 0
|
||||||
|
|
||||||
img
|
img
|
||||||
max-width 100%
|
max-width 100%
|
||||||
|
Loading…
Reference in New Issue
Block a user