gancio-upstream/pages/index.vue
2020-01-21 01:24:10 +01:00

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>