feat: 完善 WPF 接管后的子系统选择

This commit is contained in:
2026-07-22 13:41:53 +08:00
parent a11ef73f1c
commit e4b40a32d7
2 changed files with 61 additions and 3 deletions
+3 -1
View File
@@ -18,7 +18,9 @@ Program.Main
## 外部宿主路线
`.NET Framework 4.8` 的独立启动程序通过 `LegacyApplicationHost.Run` 注入 `IExternalMainShell`。旧程序仍负责 CEF、全局异常、配置、数据库登录和子系统选择,只`RunMainForm` 位置回调外部主界面。
`.NET Framework 4.8` 的独立启动程序通过 `LegacyApplicationHost.Run` 注入 `IExternalMainShell`。旧程序仍负责 CEF、全局异常、配置、数据库登录;登录成功后自动保留当前有效子系统,或选择第一个有权限且启用的子系统,不再显示 `FrmSubSystem`,随后`RunMainForm` 位置回调外部主界面。
该跳过逻辑只在 `Manager.ExternalMainShell != null` 时生效。直接运行 `Ls_ERP.exe` 时仍保留原子系统选择页和原有循环。
`IExternalMainShell` 当前承担: