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