fix: login Box has already been closed

This commit is contained in:
guozhigq
2024-05-10 23:45:51 +08:00
parent cd3969174d
commit c0c1f9b95d

View File

@ -110,6 +110,9 @@ class WebviewController extends GetxController {
SmartDialog.showToast('登录成功');
try {
Box userInfoCache = GStrorage.userInfo;
if (!userInfoCache.isOpen) {
userInfoCache = await Hive.openBox('userInfo');
}
await userInfoCache.put('userInfoCache', result['data']);
final HomeController homeCtr = Get.find<HomeController>();