删除socket,删除cnzz

This commit is contained in:
A1300399510
2024-10-21 11:24:03 +08:00
parent 7fdd7434af
commit e6ee936ffd
5 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ import api from "./utils/api"
let socketTask = null
onMounted(() => {
useSocket()
// useSocket()
document.addEventListener("visibilitychange", () => {
if (document.visibilityState === "visible" && socketTask.readyState != 1) useSocket()
})