Feat: Move config and csv loading in app.vue

This commit is contained in:
Bertrand Benjamin 2018-12-04 19:01:56 +01:00
parent c924ce6ea6
commit 9b4b2f2ec9
2 changed files with 4 additions and 4 deletions

View File

@ -13,6 +13,10 @@ export default {
name: 'app', name: 'app',
components: { components: {
'navbar': navbar 'navbar': navbar
},
mounted: function () {
this.$store.dispatch('config/load')
this.$store.dispatch('datas/find_csv')
} }
} }
</script> </script>

View File

@ -88,10 +88,6 @@ export default {
tags_filter: [] tags_filter: []
} }
}, },
mounted: function () {
this.$store.dispatch('config/load')
this.$store.dispatch('datas/find_csv')
},
computed: { computed: {
...mapGetters({ ...mapGetters({
'csvs': 'datas/csvs', 'csvs': 'datas/csvs',