1
This commit is contained in:
@@ -79,12 +79,16 @@ class _LoginPageState extends State<LoginPage> {
|
||||
|
||||
//设置登录信息l
|
||||
await userStore.setToken(loginRes.accessToken);
|
||||
await userStore.asyncUserInfo();
|
||||
await userStore.setUserInfo();
|
||||
|
||||
if (!mounted) return;
|
||||
if (userStore.userInfo?.accountType == 1) {
|
||||
context.go(RoutePaths.sHome);
|
||||
} else {
|
||||
context.go(RoutePaths.sHome);
|
||||
} else if(userStore.userInfo?.accountType == 2){
|
||||
context.go(RoutePaths.tHome);
|
||||
}else{
|
||||
EasyLoading.showError("账号类型错误");
|
||||
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user