瀏覽代碼

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



Loading…
取消
儲存