Skip to content

Commit 69f60c9

Browse files
committed
fix: 假如现在在 oobe 界面,开启局域网模式,点击打开主界面,然后在 oobe 那个窗口里点返回,切换成本地模式,主界面的 baseurl 有问题
1 parent 87d2647 commit 69f60c9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

MaiChartManager/AppLifecycleManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ public static void ShowBrowser(string loopbackUrl)
7878
{
7979
if (AppMain.BrowserWin is { IsDisposed: false })
8080
{
81+
// 服务器可能已重启(如 OOBE 中切换模式),需要刷新 URL
82+
AppMain.BrowserWin.InjectBackendUrl(loopbackUrl);
8183
AppMain.BrowserWin.Activate();
8284
}
8385
else

0 commit comments

Comments
 (0)