增加消息类型:event

This commit is contained in:
fan
2021-01-24 15:46:15 +08:00
parent c9c76760c3
commit 0d235ac861
12 changed files with 132 additions and 31 deletions
+4
View File
@@ -521,6 +521,10 @@ export default {
lastContentRender[messageType] = render;
},
lastContentRender(message) {
if(!isFunction(lastContentRender[message.type])){
console.error(`not found '${message.type}' of the latest message renderer,try to use setLastContentRender()`);
return '';
};
return lastContentRender[message.type].call(this, message);
},
/**