opt: 登录逻辑

This commit is contained in:
guozhigq
2023-06-23 00:11:56 +08:00
parent e3d3b29779
commit fccd21e8b6
7 changed files with 66 additions and 20 deletions

View File

@ -19,13 +19,15 @@ class MineController extends GetxController {
super.onInit();
if (userInfoCache.get('userInfoCache') != null) {
print(userInfoCache.get('userInfoCache'));
userInfo.value = userInfoCache.get('userInfoCache');
}
}
onLogin() {
onLogin() async {
if (!userLogin.value) {
/// TODO
Get.back();
await Future.delayed(const Duration(milliseconds: 150));
Get.toNamed(
'/webview',
parameters: {