'remove_reload'
This commit is contained in:
parent
dad46d2452
commit
a1e5fe64e9
@ -37,7 +37,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getRuntime() {
|
getRuntime() {
|
||||||
const diff = Date.now() - new Date("2023-4-21 10:36:00");
|
const diff = Date.now() - new Date("2023-5-13 10:00:00");
|
||||||
const days = parseInt(diff / 1000 / 60 / 60 / 24);
|
const days = parseInt(diff / 1000 / 60 / 60 / 24);
|
||||||
const hours = parseInt(
|
const hours = parseInt(
|
||||||
(diff - days * 24 * 60 * 60 * 1000) / 1000 / 60 / 60
|
(diff - days * 24 * 60 * 60 * 1000) / 1000 / 60 / 60
|
||||||
|
@ -31,7 +31,9 @@ function handleError(err) {
|
|||||||
function handleClose(data) {
|
function handleClose(data) {
|
||||||
console.log('[x] 服务器关闭连接')
|
console.log('[x] 服务器关闭连接')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
location.reload()
|
// location.reload()
|
||||||
|
const wsc = new WsClient(data);
|
||||||
|
wsc.registerListeners();
|
||||||
}, 30000)
|
}, 30000)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user