Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
miuss committed Dec 4, 2024
1 parent e5f00a7 commit 58001b9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ const initScoket = async () => {
sendPing()
}
socket.onerror = function () {
Message.error('WebSocket连接失败')
socket.onclose = function () {
Message.warning('WebSocket已断连,正在重连中...')
initScoket()
}
}
Expand Down Expand Up @@ -546,6 +548,11 @@ a {
&.is-active {
background: #e7e7e730;
.delete-btn {
display: none!important;
}
&>.detail {
margin-top: 15px;
border-top: 1px solid #eeeeee;
Expand Down

0 comments on commit 58001b9

Please sign in to comment.