更新优化
This commit is contained in:
@@ -151,6 +151,37 @@ export default {
|
||||
'重试'
|
||||
)
|
||||
}
|
||||
|
||||
if (data.isClear) {
|
||||
btns = [
|
||||
that.$createElement(
|
||||
'el-button',
|
||||
{
|
||||
props: { type: 'primary', size: 'mini' },
|
||||
style: { marginLeft: '10px' },
|
||||
on: {
|
||||
click: () => {
|
||||
// 清除错误
|
||||
that.$store
|
||||
.dispatch('chat/websocketsend', {
|
||||
req_name: 'cleanError',
|
||||
req_type: 2,
|
||||
req_info: {}
|
||||
})
|
||||
.then(() => {
|
||||
notifyInstance.close()
|
||||
setTimeout(() => {
|
||||
that.errors.splice(that.errors.indexOf(data.message), 1)
|
||||
}, 10000);
|
||||
})
|
||||
.catch(() => {})
|
||||
}
|
||||
}
|
||||
},
|
||||
'重试'
|
||||
)
|
||||
]
|
||||
}
|
||||
return that.$createElement('div', [that.$createElement('p', { style: 'margin-top: 8px; line-height: 24px' }, data.message), that.$createElement('div', { style: 'margin-top: 8px; text-align: right' }, btns)])
|
||||
}
|
||||
// 创建通知实例
|
||||
|
||||
Reference in New Issue
Block a user