diff --git a/resources/assets/js/functions/web.js b/resources/assets/js/functions/web.js
index 9c52da622..d1d7d3b94 100755
--- a/resources/assets/js/functions/web.js
+++ b/resources/assets/js/functions/web.js
@@ -748,6 +748,8 @@
.replace(widthReg, `original-width="${width}" width="${scale.width}"`)
.replace(heightReg, `original-height="${height}" height="${scale.height}"`)
text = text.replace(res, value)
+ } else {
+ text = text.replace(res, `
${res}
`);
}
})
}
diff --git a/resources/assets/js/pages/manage/components/DialogItem.vue b/resources/assets/js/pages/manage/components/DialogItem.vue
index 58fa558fa..81378d185 100644
--- a/resources/assets/js/pages/manage/components/DialogItem.vue
+++ b/resources/assets/js/pages/manage/components/DialogItem.vue
@@ -199,8 +199,8 @@ export default {
this.dispatch("on-view-reply", data)
},
- onViewText(el) {
- this.dispatch("on-view-text", el)
+ onViewText(e, el) {
+ this.dispatch("on-view-text", e, el)
},
onViewFile(data) {
@@ -227,9 +227,9 @@ export default {
this.dispatch("on-show-emoji-user", data)
},
- dispatch(event, arg) {
+ dispatch(event, ...arg) {
if (this.isReply) {
- this.$emit(event, arg)
+ this.$emit(event, ...arg)
return
}
@@ -244,7 +244,7 @@ export default {
}
if (parent) {
- parent.$emit(event, arg)
+ parent.$emit(event, ...arg)
}
}
}
diff --git a/resources/assets/js/pages/manage/components/DialogMarkdown.vue b/resources/assets/js/pages/manage/components/DialogMarkdown.vue
index b227530b9..10a708ff0 100644
--- a/resources/assets/js/pages/manage/components/DialogMarkdown.vue
+++ b/resources/assets/js/pages/manage/components/DialogMarkdown.vue
@@ -1,5 +1,5 @@
-
+