更新优化

This commit is contained in:
24kycj
2025-06-22 23:25:40 +08:00
parent 5441064823
commit 311f94644c
3 changed files with 56 additions and 9 deletions
+31
View File
@@ -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)])
}
// 创建通知实例