swiper.vue 435 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <div class="nav">
  3. <h1>swiper</h1>
  4. {{userInfo.id}}
  5. </div>
  6. </template>
  7. <script type="text/javascript">
  8. import { mapState, mapActions } from 'vuex'
  9. export default({
  10. computed: mapState({
  11. userInfo: state => state.test.userInfo
  12. }),
  13. created () {
  14. this.USERINFO()
  15. },
  16. methods: {
  17. ...mapActions([
  18. 'USERINFO'
  19. ])
  20. }
  21. })
  22. </script>
  23. <style type="text/css" scoped>
  24. </style>