Commit 06de53c3 by zhuzhequan

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

parent 283a7dcf
...@@ -50,12 +50,13 @@ function sendSystemMessage(msg: string): void { ...@@ -50,12 +50,13 @@ function sendSystemMessage(msg: string): void {
} }
const showReconnectingMsg = (): void => { const showReconnectingMsg = (): void => {
ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', { ElMessage.warning('消息服务已断开,正在重新连接,请稍候')
showClose: true, // ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', {
confirmButtonText: '确定', // showClose: true,
cancelButtonText: '取消', // confirmButtonText: '确定',
type: 'warning', // cancelButtonText: '取消',
}) // type: 'warning',
// })
} }
class Im { class Im {
...@@ -150,7 +151,7 @@ class Im { ...@@ -150,7 +151,7 @@ class Im {
this.num++ this.num++
if (this.num > 5) { if (this.num > 5) {
ElMessageBox.alert('尝试重连消息服务失败,请刷新重试') ElMessage.warning('尝试重连消息服务失败,请刷新重试')
return return
} }
......
...@@ -50,12 +50,13 @@ function sendSystemMessage(msg: string): void { ...@@ -50,12 +50,13 @@ function sendSystemMessage(msg: string): void {
} }
const showReconnectingMsg = (): void => { const showReconnectingMsg = (): void => {
ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', { ElMessage.warning('消息服务已断开,正在重新连接,请稍候')
showClose: true, // ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', {
confirmButtonText: '确定', // showClose: true,
cancelButtonText: '取消', // confirmButtonText: '确定',
type: 'warning', // cancelButtonText: '取消',
}) // type: 'warning',
// })
} }
class Im { class Im {
...@@ -150,7 +151,7 @@ class Im { ...@@ -150,7 +151,7 @@ class Im {
this.num++ this.num++
if (this.num > 5) { if (this.num > 5) {
ElMessageBox.alert('尝试重连消息服务失败,请刷新重试') ElMessage.warning('尝试重连消息服务失败,请刷新重试')
return return
} }
......
...@@ -51,12 +51,13 @@ function sendSystemMessage(msg: string): void { ...@@ -51,12 +51,13 @@ function sendSystemMessage(msg: string): void {
} }
const showReconnectingMsg = (): void => { const showReconnectingMsg = (): void => {
ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', { ElMessage.warning('消息服务已断开,正在重新连接,请稍候')
showClose: true, // ElMessageBox.alert('消息服务已断开,正在重新连接,请稍候', {
confirmButtonText: '确定', // showClose: true,
cancelButtonText: '取消', // confirmButtonText: '确定',
type: 'warning', // cancelButtonText: '取消',
}) // type: 'warning',
// })
} }
class Im { class Im {
...@@ -151,7 +152,7 @@ class Im { ...@@ -151,7 +152,7 @@ class Im {
this.num++ this.num++
if (this.num > 5) { if (this.num > 5) {
ElMessageBox.alert('尝试重连消息服务失败,请刷新重试') ElMessage.warning('尝试重连消息服务失败,请刷新重试')
return 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