Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
06de53c3
Commit
06de53c3
authored
Jan 15, 2026
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改websocket断连弹出显示形式
parent
283a7dcf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
21 deletions
+24
-21
src/utils/cnSuperWebsocket.ts
+8
-7
src/utils/cnWebsocket.ts
+8
-7
src/utils/websocket.ts
+8
-7
No files found.
src/utils/cnSuperWebsocket.ts
View file @
06de53c3
...
...
@@ -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
)
{
ElMessage
Box
.
alert
(
'尝试重连消息服务失败,请刷新重试'
)
ElMessage
.
warning
(
'尝试重连消息服务失败,请刷新重试'
)
return
}
...
...
src/utils/cnWebsocket.ts
View file @
06de53c3
...
...
@@ -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
)
{
ElMessage
Box
.
alert
(
'尝试重连消息服务失败,请刷新重试'
)
ElMessage
.
warning
(
'尝试重连消息服务失败,请刷新重试'
)
return
}
...
...
src/utils/websocket.ts
View file @
06de53c3
...
...
@@ -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
)
{
ElMessage
Box
.
alert
(
'尝试重连消息服务失败,请刷新重试'
)
ElMessage
.
warning
(
'尝试重连消息服务失败,请刷新重试'
)
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment