Make reload work

This commit is contained in:
Henrique Dias committed 2017-07-03 15:57:07 +01:00
1 parent 4ddee7cd75
commit 9e42f0f1ed
8 files changed
+14 -9

No files matched your search

+6 -1
View File
@@ -136,6 +136,7 @@ export default {
...mapState([
'req',
'user',
'reload',
'baseURL',
'multiple',
'showInfo',
@@ -167,7 +168,11 @@ export default {
this.fetchData()
},
watch: {
'$route': 'fetchData'
'$route': 'fetchData',
'reload': function () {
this.$store.commit('setReload', false)
this.fetchData()
}
},
mounted () {
updateColumnSizes()