From 9b4b2f2ec96c60ca8c2045f661bfcca6692686d8 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Tue, 4 Dec 2018 19:01:56 +0100 Subject: [PATCH] Feat: Move config and csv loading in app.vue --- src/App.vue | 4 ++++ src/views/home.vue | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) 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',