refactor: upload vuex module

This commit is contained in:
Ramires Viana
2020-07-08 14:12:33 +00:00
parent 28d2b35718
commit c9cc0d3d5d
6 changed files with 51 additions and 44 deletions

View File

@@ -2,6 +2,7 @@ import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import getters from './getters'
import upload from './modules/upload'
Vue.use(Vuex)
@@ -22,18 +23,13 @@ const state = {
show: null,
showShell: false,
showMessage: null,
showConfirm: null,
uploading: {
id: 0,
count: 0,
size: 0,
progress: []
}
showConfirm: null
}
export default new Vuex.Store({
strict: true,
state,
getters,
mutations
mutations,
modules: { upload }
})