up store
This commit is contained in:
parent
dad54ffd2f
commit
e196f1c60a
@ -1,4 +1,4 @@
|
||||
import i18n from './config/i18n'
|
||||
import i18n from './config/i18n.ts'
|
||||
|
||||
export default {
|
||||
// Global page headers (https://go.nuxtjs.dev/config-head)
|
||||
|
@ -2,11 +2,10 @@
|
||||
<section class="section">
|
||||
<h1>Horaires</h1>
|
||||
<p>Vos horaires actuelles</p>
|
||||
<iframe
|
||||
src="https://projets.pavie.info/yohours/"
|
||||
frameborder="0"
|
||||
width="100%"
|
||||
height="800"
|
||||
></iframe>
|
||||
<ul>
|
||||
<li v-for="h in $store.formConfig.hours" :key="h">
|
||||
{{ h }}
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</template>
|
||||
|
@ -10,28 +10,28 @@ export const state = () => ({
|
||||
formConfig: {
|
||||
name: '',
|
||||
delivery: false,
|
||||
hours: [],
|
||||
hours: ['a', 'b'],
|
||||
tags: [],
|
||||
},
|
||||
})
|
||||
|
||||
export const mutations = {
|
||||
increment(state: any) {
|
||||
increment(state) {
|
||||
state.counter++
|
||||
},
|
||||
add(state: any, text: any) {
|
||||
add(state, text) {
|
||||
state.list.push({
|
||||
text,
|
||||
done: false,
|
||||
})
|
||||
},
|
||||
remove(state: any, { todo }: any) {
|
||||
remove(state, { todo }) {
|
||||
state.list.splice(state.list.indexOf(todo), 1)
|
||||
},
|
||||
setFormField(state: any, { field }: any) {
|
||||
setFormField(state, { field }) {
|
||||
state.formConfig[state.formConfig.indexOf(field)] = field
|
||||
},
|
||||
setTag(state: any, { field }: any) {
|
||||
setTag(state, { field }) {
|
||||
state.formConfig.tags[state.formConfig.tags.indexOf(field)] = field
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user