123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <template>
- <MainContentLayout id="nominum" class="index">
- <template v-slot:header>
- <h1>Personnes</h1>
- <span v-if="!items.length">Loading ...</span>
- </template>
- <ul v-if="items.length" class="item-list">
- <li v-for="item in items" :key="item.url">
- <NominumItem :item="item" />
- </li>
- </ul>
- <template v-slot:nav>
- </template>
- </MainContentLayout>
- </template>
- <script>
- import { REST } from 'api/rest-axios'
- import MainContentLayout from '../components/Layouts/MainContentLayout'
- import NominumItem from '../components/Content/NominumItem'
- export default {
- name: 'Nominum',
- components: {
- NominumItem,
- MainContentLayout
- },
- data: () => ({
- items: []
- }),
- beforeCreate () {
- // items/gdpLeMaire1685T01BodyFr01.003.016
- // texts/gdpSauval1724
- REST.get(`/indexNominum`, {})
- .then(({ data }) => {
- console.log('nominum REST: data', data)
- if (data.content.length) {
- this.items = data.content
- }
- })
- .catch((error) => {
- console.warn('Issue with nominum', error)
- Promise.reject(error)
- })
- }
- }
- </script>
- <style lang="scss" scoped>
- </style>
|