Browse Source

'reload'

master
gtz 1 year ago
parent
commit
dad46d2452
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/utils/wsClass.js

+ 1
- 2
src/utils/wsClass.js View File

@@ -31,8 +31,7 @@ function handleError(err) {
function handleClose(data) {
console.log('[x] 服务器关闭连接')
setTimeout(() => {
const wsc = new WsClient(data);
wsc.registerListeners();
location.reload()
}, 30000)
}



Loading…
Cancel
Save