diff --git a/src/App.vue b/src/App.vue index 556542b..82e85aa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,6 +13,10 @@ export default { name: 'app', components: { 'navbar': navbar + }, + mounted: function () { + this.$store.dispatch('config/load') + this.$store.dispatch('datas/find_csv') } } diff --git a/src/views/home.vue b/src/views/home.vue index 9b53048..101ae62 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -88,10 +88,6 @@ export default { tags_filter: [] } }, - mounted: function () { - this.$store.dispatch('config/load') - this.$store.dispatch('datas/find_csv') - }, computed: { ...mapGetters({ 'csvs': 'datas/csvs',