Merge branch 'fix'

This commit is contained in:
guozhigq
2024-05-13 23:40:25 +08:00
2 changed files with 5 additions and 1 deletions

View File

@ -153,7 +153,8 @@ class _BottomControlState extends State<BottomControl> {
size: 20, size: 20,
color: Colors.white, color: Colors.white,
), ),
fuc: () => widget.controller!.triggerFullScreen(), fuc: () => widget.controller!.triggerFullScreen(
status: !(widget.controller!.isFullScreen.value)),
), ),
], ],
), ),

View File

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