|
|
@@ -95,24 +95,14 @@
|
|
|
if (data.type === 'SendMessage' && data.content.body) {
|
|
|
this.$baseEventBus.$emit('receivedMessage')
|
|
|
let msg = JSON.parse(item).content.body
|
|
|
- const h = this.$createElement
|
|
|
- let tag = {
|
|
|
- style: {
|
|
|
- cursor: 'pointer',
|
|
|
- },
|
|
|
- on: {
|
|
|
- click: () => {
|
|
|
- // this.handleItem(data.content.body)
|
|
|
- },
|
|
|
- },
|
|
|
- }
|
|
|
this.$notify({
|
|
|
title: msg.msgTitle,
|
|
|
position: 'top-right',
|
|
|
- type: 'warning',
|
|
|
- duration: 5000,
|
|
|
+ type: 'info',
|
|
|
+ customClass: 'notify-msg',
|
|
|
+ duration: 1000 * 60 * 5,
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
- message: h('div', {}, [h('div', tag, msg.msgContent)]),
|
|
|
+ message: msg.msgContent,
|
|
|
})
|
|
|
}
|
|
|
},
|