You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
444 B

9 months ago
  1. // export default {
  2. // userInfo: state => state.user.userInfo,
  3. // pushMessage: state => state.push.pushMessage,
  4. // currentAdd: state=>{
  5. // };
  6. export default {
  7. pushMessage: state => state.push.pushMessage,
  8. getCurrentAdd: function (state) {
  9. //返回一个函数用于接收
  10. return function (id) {
  11. let add = state.add.addList.find(item => item.id == id)
  12. if(add) {
  13. return add
  14. }else {
  15. return {}
  16. }
  17. }
  18. }
  19. };