diff --git a/resources/assets/js/pages/manage/components/ChatInput/index.vue b/resources/assets/js/pages/manage/components/ChatInput/index.vue index c674891e8..6b0ab4cfb 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -668,7 +668,6 @@ export default { } delta.ops = delta.ops.map(op => { const obj = { - attributes: {}, insert: op.insert }; try { @@ -680,6 +679,9 @@ export default { if (op.attributes) { ['bold', 'strike', 'italic', 'underline', 'list', 'blockquote', 'link'].some(item => { if (op.attributes[item]) { + if (typeof obj.attributes === "undefined") { + obj.attributes = {} + } obj.attributes[item] = op.attributes[item] } }) diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index 9f92e0f8f..8ea13f864 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -141,7 +141,7 @@ -