|
|
@ -326,12 +326,16 @@ extension $LoginQrcodeRouteExtension on LoginQrcodeRoute { |
|
|
|
extension $LoginCheckServerStatusRouteExtension on LoginCheckServerStatusRoute { |
|
|
|
extension $LoginCheckServerStatusRouteExtension on LoginCheckServerStatusRoute { |
|
|
|
static LoginCheckServerStatusRoute _fromState(GoRouterState state) => LoginCheckServerStatusRoute( |
|
|
|
static LoginCheckServerStatusRoute _fromState(GoRouterState state) => LoginCheckServerStatusRoute( |
|
|
|
serverUrl: state.queryParameters['server-url']!, |
|
|
|
serverUrl: state.queryParameters['server-url']!, |
|
|
|
|
|
|
|
loginName: state.queryParameters['login-name'], |
|
|
|
|
|
|
|
password: state.queryParameters['password'], |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
String get location => GoRouteData.$location( |
|
|
|
String get location => GoRouteData.$location( |
|
|
|
'/login/check/server', |
|
|
|
'/login/check/server', |
|
|
|
queryParams: { |
|
|
|
queryParams: { |
|
|
|
'server-url': serverUrl, |
|
|
|
'server-url': serverUrl, |
|
|
|
|
|
|
|
if (loginName != null) 'login-name': loginName, |
|
|
|
|
|
|
|
if (password != null) 'password': password, |
|
|
|
}, |
|
|
|
}, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|