修复使用sidebar-message插槽时切换联系人会报错的问题

This commit is contained in:
fan
2021-01-31 22:47:23 +08:00
parent ad39b5e011
commit e966808807
9 changed files with 39 additions and 59 deletions
+1 -6
View File
@@ -602,12 +602,7 @@ export default {
this.CacheDraft.set(prevCurrentContactId,editorValue);
this.updateContact({
id:prevCurrentContactId,
lastContent:[
<span style="color:red;">[草稿]</span>,
<span domProps={{
innerHTML:this.lastContentRender({type:'text',content:editorValue})
}}></span>
],
lastContent:`<span style="color:red;">[草稿]</span><span>${this.lastContentRender({type:'text',content:editorValue})}</span>`,
});
this.setEditorValue('');
}