从localstorage中获取数据

项目中,伴随着用户登录进系统,会带着一系列的数据进来,保存在store或者localstorage中,比如 如图所示,数据在localstorage的user中,这里注意一下,正常情况下取user中的createTime可以用一个对象点一个对象,但是这里通过localstorage.getItem('user').user.createTime获取不到,返回值是undefined,这是为什么呢?
相关文章
相关标签/搜索