Commit 06de53c3 by zhuzhequan

fix:修改websocket断连弹出显示形式

parent 283a7dcf
......@@ -50,12 +50,13 @@ function sendSystemMessage(msg: string): void {
}
const showReconnectingMsg = (): void => {
ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', {
showClose: true,
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
ElMessage.warning('消息服务已断开,正在重新连接,请稍候')
// ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', {
// showClose: true,
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning',
// })
}
class Im {
......@@ -150,7 +151,7 @@ class Im {
this.num++
if (this.num > 5) {
ElMessageBox.alert('尝试重连消息服务失败,请刷新重试')
ElMessage.warning('尝试重连消息服务失败,请刷新重试')
return
}
......
......@@ -50,12 +50,13 @@ function sendSystemMessage(msg: string): void {
}
const showReconnectingMsg = (): void => {
ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', {
showClose: true,
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
ElMessage.warning('消息服务已断开,正在重新连接,请稍候')
// ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', {
// showClose: true,
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning',
// })
}
class Im {
......@@ -150,7 +151,7 @@ class Im {
this.num++
if (this.num > 5) {
ElMessageBox.alert('尝试重连消息服务失败,请刷新重试')
ElMessage.warning('尝试重连消息服务失败,请刷新重试')
return
}
......
......@@ -51,12 +51,13 @@ function sendSystemMessage(msg: string): void {
}
const showReconnectingMsg = (): void => {
ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', {
showClose: true,
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
ElMessage.warning('消息服务已断开,正在重新连接,请稍候')
// ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', {
// showClose: true,
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning',
// })
}
class Im {
......@@ -151,7 +152,7 @@ class Im {
this.num++
if (this.num > 5) {
ElMessageBox.alert('尝试重连消息服务失败,请刷新重试')
ElMessage.warning('尝试重连消息服务失败,请刷新重试')
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment