getters.js 301 B

12345678910
  1. // 用gettter取数据到组件里,是数据的映射
  2. export default {
  3. openId: state => state.openId,
  4. sessionKey: state => state.sessionKey,
  5. closeVibrator: state => state.closeVibrator,
  6. closeAnimal: state => state.closeAnimal,
  7. user: state => state.userInfo,
  8. token: state => state.token
  9. }