Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
netyouli committed Nov 24, 2019
1 parent a94268e commit 0cb41f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/app/my/my_route.dart
Expand Up @@ -148,8 +148,11 @@ class _MyRouteState extends State<MyRoute> {
MyItem(title: '设置', iconPath: 'images/my_set_icon.png', onPressed: (){
_goLogin((ok){
if (ok) {
Navigator.of(context).pushNamed('set');

Navigator.of(context).pushNamed('set').then((isexit){
if (isexit = true) {
_userInfo.copySelf(Login());
}
});
}
});
},),
Expand Down
2 changes: 1 addition & 1 deletion lib/app/my/set/set_route.dart
Expand Up @@ -34,7 +34,7 @@ class SetRoute extends StatelessWidget {
color: AppColor.theme,
onPressed: () {
User.exitLogin();
Navigator.of(context).pop();
Navigator.of(context).pop(true);
},
child: Container(
width: double.infinity,
Expand Down

0 comments on commit 0cb41f9

Please sign in to comment.