osm_my_commerce/pages/Horaires.vue

33 lines
581 B
Vue
Raw Normal View History

2020-12-17 12:09:28 +01:00
<template>
<section class="section">
<h1>Horaires</h1>
<p>Vos horaires actuelles</p>
2021-02-25 16:26:59 +01:00
<ul>
<li v-for="h in $store.state.formConfig.hours" :key="h">
2021-01-28 13:12:24 +01:00
{{ h }}
2021-02-25 16:26:59 +01:00
</li>
</ul>
2020-12-17 12:09:28 +01:00
</section>
</template>
2021-02-25 16:25:00 +01:00
<script>
2021-02-25 16:26:59 +01:00
import { mapMutations } from 'vuex'
export default {
computed: {
hours() {
2021-02-25 16:26:59 +01:00
return this.$store.state.formConfig.hours
},
},
2021-02-25 16:26:59 +01:00
methods: {
addhour(e) {
2021-02-25 16:26:59 +01:00
this.$store.commit('formConfig/add', e.target.value)
e.target.value = ''
},
...mapMutations({
setTag: 'index/setTag',
}),
},
2021-02-25 16:26:59 +01:00
}
2021-02-25 16:25:00 +01:00
</script>