'remove_reload'

This commit is contained in:
gtz 2023-05-20 10:25:13 +08:00
parent dad46d2452
commit a1e5fe64e9
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)
} }