ソースを参照

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



読み込み中…
キャンセル
保存