state.js 968 B

1234567891011121314151617181920
  1. const _token=uni.getStorageSync('token') ;
  2. const _loginResponse=uni.getStorageSync('loginResponse') ? JSON.parse(uni.getStorageSync('loginResponse')) : [] ;
  3. let _ckList=uni.getStorageSync('ckList') ? JSON.parse(uni.getStorageSync('ckList')) : [] ;
  4. let _userInfo=uni.getStorageSync('userInfo') ? JSON.parse(uni.getStorageSync('userInfo')) : null ;
  5. let _outsourceIssueList=uni.getStorageSync('outsourceIssueList') ? JSON.parse(uni.getStorageSync('outsourceIssueList')) : [] ;
  6. let _movewarehouseList=uni.getStorageSync('movewarehouseList') ? JSON.parse(uni.getStorageSync('movewarehouseList')) : [] ;
  7. export default {
  8. // loginStatus:false, // 登陆状态
  9. token:_token,// 登陆权限
  10. loginResponse:_loginResponse, //登陆返回的数据
  11. ckList:_ckList, // 存储仓库
  12. userInfo:_userInfo, // 账号信息
  13. systemInfo:"", // 系统信息
  14. outsourceIssueList:_outsourceIssueList, // 委外发料
  15. movewarehouseList:_movewarehouseList ,// 移除移库物品信息
  16. submitStatus:false, // 提交状态
  17. }