Explorar el Código

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

tags/0.0.3+1
PH2 hace 4 años
padre
commit
18689c33f0
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      lib/util/router_util.dart

+ 4
- 2
lib/util/router_util.dart Ver fichero

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



Cargando…
Cancelar
Guardar