import{aP as e}from"./index-CY26MUkV.js";const t=e("user",{state:()=>({accessToken:"",userAccount:null,userId:"",auth:{},nowLanguage:{},languages:[],setting:{},baseInfo:{}}),actions:{setToken(e){this.accessToken=e},updateUserAccount(e){this.userAccount=e},setUserId(e){this.userId=e},setAuth(e){this.auth=e},updateNowLanguage(e){this.nowLanguage=e},updateLanguages(e){this.languages=e},updateSetting(e){this.setting=e},getBaseInfo(){return this.baseInfo},updateBaseInfo(e){e&&(this.baseInfo=e)},clear(){this.accessToken="",this.userAccount=null,this.userId="",this.auth={},this.nowLanguage={},this.languages=[],this.setting={},this.baseInfo={}}},getters:{getToken:e=>e.accessToken,getUserAccount:e=>e.userAccount,getUserId:e=>e.userId,getAuth:e=>e.auth,getLanguages:e=>e.languages,getSetting:e=>e.setting,getNowLanguage:e=>e.nowLanguage,baseInfoGet:e=>e.baseInfo}});export{t as u};
