mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
20 lines
439 B
Vue
20 lines
439 B
Vue
<template lang='pug'>
|
|
Home
|
|
</template>
|
|
<script>
|
|
import Home from '~/components/Home.vue'
|
|
import moment from 'moment-timezone'
|
|
import { mapState } from 'vuex'
|
|
|
|
export default {
|
|
name: 'Index',
|
|
components: { Home },
|
|
fetch ({ store }) {
|
|
moment.tz.setDefault(store.state.settings.instance_timezone)
|
|
},
|
|
computed: mapState(['settings']),
|
|
mounted (ctx) {
|
|
moment.tz.setDefault(this.settings.instance_timezone)
|
|
}
|
|
}
|
|
</script>
|