退出页面时自动断开链接

This commit is contained in:
洛洛希雅 2024-05-07 21:32:19 +08:00
parent dd72766fb8
commit b720bf4b24

View File

@ -55,6 +55,10 @@ async function disconnect() {
publishing.status = false publishing.status = false
} }
onUnmounted(() => {
disconnect()
})
async function publish() { async function publish() {
let jsonModule: DataLibContent let jsonModule: DataLibContent
try { try {