Merge remote-tracking branch 'origin/hot-fix' into hot-fix

hot-fix
chantouRichard 2 months ago
commit edde0bf3ed

@ -441,6 +441,15 @@ export default {
}; };
type(); type();
}, },
parseMarkdown(markdown) {
//
let html = marked(markdown || "");
//
html = html.replace(/<script.*?>.*?<\/script>/gi, "");
return html;
},
scrollToBottom() { scrollToBottom() {
this.$nextTick(() => { this.$nextTick(() => {
this.scrollToView = "msg" + (this.messages.length - 1); this.scrollToView = "msg" + (this.messages.length - 1);

Loading…
Cancel
Save