fix logout

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-08-08 21:37:34 +08:00
parent 6a500f2ede
commit 7692dcd629
2 changed files with 3 additions and 3 deletions

View File

@@ -1006,7 +1006,7 @@ class _NetworkState extends State<_Network> with AutomaticKeepAliveClientMixin {
final newApiServer = await bind.mainGetApiServer();
if (oldApiServer.isNotEmpty && oldApiServer != newApiServer) {
await gFFI.userModel.logOut();
await gFFI.userModel.logOut(apiServer: oldApiServer);
}
return true;
}