hyzp_ybqx-Commit031:暂时跳过初始化操作,已经能够正常登录,登录前后都不再报错
This commit is contained in:
@@ -4,7 +4,6 @@ import 'package:dio/dio.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
import 'package:hyzp_ybqx511528_xingwen/components/UserAuthority.dart';
|
||||
import 'package:hyzp_ybqx511528_xingwen/pages/Works/TJXX/tj_data.dart';
|
||||
|
||||
import '../../components/EncryptUtil.dart';
|
||||
@@ -163,15 +162,17 @@ class _LoginPageState extends State<LoginByName2> {
|
||||
Storage.setString('userInfo', json.encode(response.data["data"]));
|
||||
g_userInfo.setUserInfo(theMapUserInfoRet: await getMapFromJson(response.data));
|
||||
//获取用户所属分组和相应权限
|
||||
getUserGroupAll().then((value) {
|
||||
bLoginVerify = true; //处理延时登录,判断用户名登录是否验证通过
|
||||
if (bMayLogin) {
|
||||
// bMayLogin = false;
|
||||
// bPreLoading = false;
|
||||
// bLoginVerify = false; //处理延时登录,判断用户名登录是否验证通过
|
||||
Navigator.pushNamed(context, '/tabs', arguments: g_iIndex);
|
||||
}
|
||||
});
|
||||
// getUserGroupAll().then((value) {
|
||||
// bLoginVerify = true; //处理延时登录,判断用户名登录是否验证通过
|
||||
// if (bMayLogin) {
|
||||
// // bMayLogin = false;
|
||||
// // bPreLoading = false;
|
||||
// // bLoginVerify = false; //处理延时登录,判断用户名登录是否验证通过
|
||||
// Navigator.pushNamed(context, '/tabs', arguments: g_iIndex);
|
||||
// }
|
||||
// });
|
||||
bLoginVerify = true; //处理延时登录,判断用户名登录是否验证通过
|
||||
Navigator.pushNamed(context, '/tabs', arguments: g_iIndex);
|
||||
} else {
|
||||
print('登录失败:${response.data["data"]}');
|
||||
bLoginVerify = false; //处理延时登录,判断用户名登录是否验证通过
|
||||
|
||||
Reference in New Issue
Block a user