Browse Source

1、登录是否需要更新授权状态

tags/0.0.3+1
PH2 4 years ago
parent
commit
18689c33f0
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      lib/util/router_util.dart

+ 4
- 2
lib/util/router_util.dart View File

@@ -74,8 +74,10 @@ class RouterUtil {
}

// 回到首页
static Future goBackHomePage(BuildContext context) async{
await TaobaoAuth.initAuth(context);
static Future goBackHomePage(BuildContext context, {bool needUpdateAuth = true}) async{
if(needUpdateAuth) {
await TaobaoAuth.initAuth(context);
}
Navigator.popUntil(context, ModalRoute.withName('/homePage'));
}



Loading…
Cancel
Save