index.js 395 B

123456789101112131415
  1. import actions from "./actions"
  2. import mutations from "./mutations"
  3. const state = {
  4. openId: uni.getStorageSync('recycle_mobile_openId') || '',
  5. token: uni.getStorageSync('recycle_mobile_token') || '',
  6. name: uni.getStorageSync('recycle_mobile_name') || '',
  7. avatar: uni.getStorageSync('recycle_mobile_avatar') || '',
  8. }
  9. export default {
  10. namespaced: true,
  11. state,
  12. mutations,
  13. actions
  14. }