diff --git a/src/components/global.less b/src/components/global.less
index 24c61ca0..daae476c 100644
--- a/src/components/global.less
+++ b/src/components/global.less
@@ -597,6 +597,9 @@ body {
p {
margin-top: 1rem;
margin-bottom: 0;
+ img {
+ width: 100%;
+ }
}
}
}
diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue
index 1d78741e..42e2ca34 100644
--- a/src/views/attachment/AttachmentList.vue
+++ b/src/views/attachment/AttachmentList.vue
@@ -22,7 +22,7 @@
:sm="24"
>
-
+
-
+
{
+ comment.content = marked(comment.content, { sanitize: true })
+ return comment
+ })
+ }
+ },
methods: {
loadComments() {
this.queryParam.page = this.pagination.page - 1
@@ -123,6 +132,12 @@ export default {
handleCommentDelete() {},
onClose() {
+ this.comments = []
+ this.pagination = {
+ page: 1,
+ size: 10,
+ sort: ''
+ }
this.$emit('close', false)
}
}
diff --git a/src/views/comment/components/TargetCommentTree.vue b/src/views/comment/components/TargetCommentTree.vue
index 3b0e6c88..a169a2d4 100644
--- a/src/views/comment/components/TargetCommentTree.vue
+++ b/src/views/comment/components/TargetCommentTree.vue
@@ -18,7 +18,7 @@
:src="avatar"
:alt="comment.author"
/>
- {{ comment.content }}
+
-
+
-
+