Bibliographie.vue 971 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <div
  3. id="bibliographie"
  4. class="full-width"
  5. >
  6. <h1>Bibliographie</h1>
  7. </div>
  8. </template>
  9. <script>
  10. import { REST } from 'api/rest-axios'
  11. export default {
  12. name: 'Bibliographie',
  13. metaInfo: {
  14. title: 'Bibliographie'
  15. },
  16. data: () => ({
  17. }),
  18. beforeCreate () {
  19. // ?_format=json
  20. REST.get(`${apipath}/bibliography/works`, {})
  21. .then(({ data }) => {
  22. console.log('Biblio REST: data', data)
  23. // if(data.length){
  24. // commit('setItems',data)
  25. // // console.log('items.length', this.items.length);
  26. // if(state.infiniteLoadingState)
  27. // state.infiniteLoadingState.loaded()
  28. // }else{
  29. // if(state.infiniteLoadingState)
  30. // state.infiniteLoadingState.complete()
  31. // }
  32. })
  33. .catch((error) => {
  34. console.warn('Issue with operum', error)
  35. Promise.reject(error)
  36. })
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. </style>