- Timestamp:
- 01/25/25 21:06:36 (3 months ago)
- Branches:
- master
- Children:
- d9884b2
- Parents:
- 78b9d99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ReserveNGo-frontend/src/components/Project/Locale_.vue
r78b9d99 rf49ddda 1 1 <script> 2 3 import { restaurantStore } from '@/PiniaStores/restaurantStore.js' 2 4 3 5 export default { 4 6 data() { 5 7 return { 6 locale:{ 7 id: 'id', 8 name: 'name_of_local', 9 } 8 locale:{}, 9 10 10 } 11 11 }, 12 mounted() { 13 fetch(`http://localhost:8080/api/locals/${restaurantStore().id}`) 14 .then(res => res.json()) 15 .then(data => this.locale = data) 16 .catch(err => console.log(err)); 17 }, 18 12 19 } 20 /*console.log(restaurantStore().id)*/ 13 21 14 22 </script> … … 16 24 <template> 17 25 <div id="container" class="border my-3 p-2"> 26 18 27 <h3>{{locale.id}}</h3> 19 28 <h5>{{locale.name}}</h5>
Note:
See TracChangeset
for help on using the changeset viewer.