import{p as r,C as e,u as n}from"./index-C69vCi_7.js";const t=(r,n)=>{try{return e("userInfo",r),e("token",n),!0}catch(t){return console.error("保存用户信息失败",t),!1}},o=()=>{try{const e=r("userInfo");return e||null}catch(e){return console.error("获取用户信息失败",e),null}},s=()=>{try{return r("token")||""}catch(e){return console.error("获取 token 失败",e),""}},c=()=>{const r=o(),e=s();return!(!r||!e)},u=()=>{try{return n("userInfo"),n("token"),!0}catch(r){return console.error("清除用户信息失败",r),!1}};export{o as a,u as c,s as g,c as i,t as s};
