v1.4.2 - 修复重启后窗口恢复 Fix restart window recovery
修复 Fix
托盘「重启 DSH」后窗口未回到 webchat / After tray "重启 DSH" the window never returned to the webchat.
-
根因:boot 页 URL 在窗口构建时捕获(彼时还在
about:blank),「回到启动页」导航到空白页;且启动页若错过ready事件便无人驱动跳转 -
修法:URL 改在页面真正加载完成时捕获(
on_page_load);重启完成后轮询窗口状态,5 秒内未到 webchat 则强制导航——双保险 -
体验:点击「重启 DSH」立即弹出并聚焦主窗口,窗口藏在托盘时重启不再毫无反馈
-
Root cause: the boot URL was captured at window build time (still
about:blank), and a reloaded boot page that missed thereadyevent had nothing to drive the handoff -
Fix: capture the URL on actual page load; after restart, poll the window and force-navigate to the webchat if the handoff hasn't happened within 5s
-
UX: clicking "重启 DSH" now shows and focuses the main window immediately
下载 dsh-desktop-windowos-v1.4.2.exe 即用 — Download the exe and run it directly.