* 获取当前登录用户信息,从Cookie中读取 ~~~ let user = JSON.parse(Cookies.get("userInfo")); ~~~ * LocalStorage方法封装 ~~~ this.setStore("item",item); this.getStore("item"); ~~~