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