From 19b8475ba5bfbdedb8314d9a7ba66288520b21e6 Mon Sep 17 00:00:00 2001 From: zsw Date: Tue, 21 Nov 2023 17:45:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=AE=B6=E7=AB=AF=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/business_system/login/business_login_page.dart | 4 ++-- lib/mine/mine_view/mine_item.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/business_system/login/business_login_page.dart b/lib/business_system/login/business_login_page.dart index 9c5c0b32..980adeb3 100644 --- a/lib/business_system/login/business_login_page.dart +++ b/lib/business_system/login/business_login_page.dart @@ -103,13 +103,13 @@ class _BusinessLoginPage extends State { sharedPreferences.setString('identitySwitch', "1"); if (businessLoginInfo.storeList.length > 1) { Navigator.of(context) - .popAndPushNamed('/router/select_shop', arguments: { + .pushReplacementNamed('/router/select_shop', arguments: { "businessLoginInfo": businessLoginInfo, "routeSource":"登录", }); } else { Navigator.of(context) - .popAndPushNamed('/router/business_page', arguments: {"businessLoginInfo": businessLoginInfo}); + .pushReplacementNamed('/router/business_page', arguments: {"businessLoginInfo": businessLoginInfo}); } } else { if (baseData.msg != null) diff --git a/lib/mine/mine_view/mine_item.dart b/lib/mine/mine_view/mine_item.dart index 86688e96..ac6fb16c 100644 --- a/lib/mine/mine_view/mine_item.dart +++ b/lib/mine/mine_view/mine_item.dart @@ -53,12 +53,12 @@ class _MineItem extends State { sharedPreferences.setString('identitySwitch', "1"); if (businessLoginInfo.storeList.length > 1) { Navigator.of(context) - .popAndPushNamed('/router/select_shop', arguments: { + .pushReplacementNamed('/router/select_shop', arguments: { "businessLoginInfo": businessLoginInfo, }); } else { Navigator.of(context) - .popAndPushNamed('/router/business_page', arguments: { + .pushReplacementNamed('/router/business_page', arguments: { "businessLoginInfo": businessLoginInfo, }); }