Commit 6529e5f77630da8fbdc09544a4708aff9b8da773
1 parent
65e33ae8
feat:添加跳转逻辑
Showing
1 changed file
with
1 additions
and
1 deletions
lib/pages/login/loginpage/login_page.dart
... | ... | @@ -30,6 +30,7 @@ class _LoginPageView extends StatelessWidget { |
30 | 30 | if (state is LoginResultChangeState) { |
31 | 31 | context.read<CacheBloc>().add(UserInfoChangeEvent(state.userEntity)); |
32 | 32 | Navigator.of(context).pushNamed(AppRouteName.home); |
33 | + // Navigator.of(context).pushNamedAndRemoveUntil(AppRouteName.home, (route) => false); | |
33 | 34 | } |
34 | 35 | }, |
35 | 36 | child: _buildLoginViewWidget(), |
... | ... | @@ -126,7 +127,6 @@ class _LoginPageView extends StatelessWidget { |
126 | 127 | GestureDetector( |
127 | 128 | onTap: () { |
128 | 129 | if (bloc.canLogin) { |
129 | - // Navigator.of(context).pushNamed(AppRouteName.home); | |
130 | 130 | bloc.add(RequestLoginEvent()); |
131 | 131 | } |
132 | 132 | }, | ... | ... |