refactor(presenter): M114 mock 的「取消登录」搬进 mock/accounts.rs(守 400 行)
This commit is contained in:
1 parent
f3e20b670e
commit
0f69eec64d
2 files changed
+17
-10
No files matched your search
@@ -284,16 +284,8 @@ impl Backend for MockBackend {
|
||||
)));
|
||||
}
|
||||
AppCommand::RefreshAll => self.seed_accounts(),
|
||||
// 与真 host 同一契约:取消登录把**两条轨**都收回 Idle(M114 r3 / 复审 r2 P2-1 的
|
||||
// 断言与截图都依赖这条;mock 的 `_ => {}` 兜底会让 Close 看起来「没反应」)。
|
||||
AppCommand::CancelDeviceLogin => {
|
||||
self.emit(AppEvent::Core(CoreEvent::DeviceLoginChanged(
|
||||
crate::dto::DeviceLoginView::new(),
|
||||
)));
|
||||
self.emit(AppEvent::Core(CoreEvent::AuthlibLoginChanged(
|
||||
crate::dto::AuthlibLoginView::new(),
|
||||
)));
|
||||
}
|
||||
// 与真 host 同一契约:取消登录把两条轨都收回 Idle(否则 Close 在 mock 下「没反应」)
|
||||
AppCommand::CancelDeviceLogin => self.cancel_login(),
|
||||
AppCommand::RefreshLogSessions | AppCommand::StopAgent => {}
|
||||
// 其余指令(安装向导/账户/Java/设置/通知)由真实 host 承接:mock 不模拟
|
||||
_ => {}
|
||||
|
||||
Reference in new issue
Block a user