Bibliographie.vue 915 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. data: () => ({
  14. }),
  15. beforeCreate () {
  16. // ?_format=json
  17. REST.get(`/bibliography/works`, {})
  18. .then(({ data }) => {
  19. console.log('Biblio REST: data', data)
  20. // if(data.length){
  21. // commit('setItems',data)
  22. // // console.log('items.length', this.items.length);
  23. // if(state.infiniteLoadingState)
  24. // state.infiniteLoadingState.loaded()
  25. // }else{
  26. // if(state.infiniteLoadingState)
  27. // state.infiniteLoadingState.complete()
  28. // }
  29. })
  30. .catch((error) => {
  31. console.warn('Issue with operum', error)
  32. Promise.reject(error)
  33. })
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. </style>