@wendongfly/myhi 1.0.73 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat.html +2 -1
- package/dist/index.html +2 -1
- package/dist/terminal.html +2 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -386,7 +386,8 @@
|
|
|
386
386
|
} catch (err) { alert('获取用量失败: ' + err.message); }
|
|
387
387
|
};
|
|
388
388
|
window.doLogout = () => {
|
|
389
|
-
if (!confirm('
|
|
389
|
+
if (!confirm('确定退出登录?')) return;
|
|
390
|
+
socket.disconnect();
|
|
390
391
|
fetch('/logout', { method: 'POST' }).then(() => { location.href = '/login'; });
|
|
391
392
|
};
|
|
392
393
|
|
package/dist/index.html
CHANGED
package/dist/terminal.html
CHANGED
|
@@ -285,7 +285,8 @@
|
|
|
285
285
|
if (data.exclusive || data.hasUsers) document.getElementById('logout-btn').style.display = '';
|
|
286
286
|
}).catch(() => {});
|
|
287
287
|
function doLogout() {
|
|
288
|
-
if (!confirm('
|
|
288
|
+
if (!confirm('确定退出登录?')) return;
|
|
289
|
+
try { for (const t of Object.values(tabs)) t.socket?.disconnect(); } catch {}
|
|
289
290
|
fetch('/logout', { method: 'POST' }).then(() => { location.href = '/login'; });
|
|
290
291
|
}
|
|
291
292
|
|