fix: dio cookie读写

This commit is contained in:
guozhigq
2023-08-18 09:30:31 +08:00
parent be1cc25d12
commit 04d953a3a2
4 changed files with 27 additions and 54 deletions

View File

@ -30,7 +30,7 @@ class SettingController extends GetxController {
}
loginOut() async {
await Request.removeCookie();
await Request.cookieManager.cookieJar.deleteAll();
await Get.find<MineController>().resetUserInfo();
userLogin.value = user.get(UserBoxKey.userLogin) ?? false;
userInfoCache.put('userInfoCache', null);