소스 검색

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

tags/0.0.3+1
PH2 4 년 전
부모
커밋
18689c33f0
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +4
    -2
      lib/util/router_util.dart

+ 4
- 2
lib/util/router_util.dart 파일 보기

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



불러오는 중...
취소
저장