@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 CHANGED
@@ -386,7 +386,8 @@
386
386
  } catch (err) { alert('获取用量失败: ' + err.message); }
387
387
  };
388
388
  window.doLogout = () => {
389
- if (!confirm('确定退出登录?当前所有会话将被关闭。')) return;
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
@@ -585,7 +585,8 @@
585
585
  }
586
586
 
587
587
  function doLogout() {
588
- if (!confirm('确定退出登录?当前所有会话将被关闭。')) return;
588
+ if (!confirm('确定退出登录?')) return;
589
+ socket.disconnect();
589
590
  fetch('/logout', { method: 'POST' }).then(() => { location.href = '/login'; });
590
591
  }
591
592
 
@@ -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('确定退出登录?当前所有会话将被关闭。')) return;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wendongfly/myhi",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "Web-based terminal sharing with chat UI — control your terminal from phone via LAN/Tailscale",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",