source: ReserveNGo-frontend/src/components/Project/Locale_.vue@ d9884b2

Last change on this file since d9884b2 was f49ddda, checked in by Aleksandarj03 <138524804+Aleksandarj03@…>, 3 months ago

Added more details page

  • Property mode set to 100644
File size: 562 bytes
Line 
1<script>
2
3import { restaurantStore } from '@/PiniaStores/restaurantStore.js'
4
5export default {
6 data() {
7 return {
8 locale:{},
9
10 }
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
19}
20/*console.log(restaurantStore().id)*/
21
22</script>
23
24<template>
25 <div id="container" class="border my-3 p-2">
26
27 <h3>{{locale.id}}</h3>
28 <h5>{{locale.name}}</h5>
29
30 </div></template>
31
32<style scoped>
33
34</style>
Note: See TracBrowser for help on using the repository browser.