Selaa lähdekoodia

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

tags/0.0.3+1
PH2 4 vuotta sitten
vanhempi
commit
18689c33f0
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. +4
    -2
      lib/util/router_util.dart

+ 4
- 2
lib/util/router_util.dart Näytä tiedosto

@@ -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'));
}



Ladataan…
Peruuta
Tallenna