Ignore:
Timestamp:
01/25/25 21:06:36 (3 months ago)
Author:
Aleksandarj03 <138524804+Aleksandarj03@…>
Branches:
master
Children:
d9884b2
Parents:
78b9d99
Message:

Added more details page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ReserveNGo-frontend/src/components/Project/Locale_.vue

    r78b9d99 rf49ddda  
    11<script>
     2
     3import { restaurantStore } from '@/PiniaStores/restaurantStore.js'
    24
    35export default {
    46  data() {
    57    return {
    6       locale:{
    7         id: 'id',
    8         name: 'name_of_local',
    9       }
     8      locale:{},
     9
    1010    }
    1111  },
     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
    1219}
     20/*console.log(restaurantStore().id)*/
    1321
    1422</script>
     
    1624<template>
    1725  <div id="container" class="border my-3 p-2">
     26
    1827    <h3>{{locale.id}}</h3>
    1928    <h5>{{locale.name}}</h5>
Note: See TracChangeset for help on using the changeset viewer.