vue router implemented

This commit is contained in:
carodej
2020-04-07 14:48:29 +02:00
parent bde58fbf60
commit ae4353cc4b
21 changed files with 722 additions and 998 deletions
-5
View File
@@ -1,5 +1,4 @@
const defaultState = {
currentView: 'files',
appSize: undefined,
config: undefined,
}
@@ -10,15 +9,11 @@ const mutations = {
SET_CONFIG(state, config) {
state.config = config
},
SET_CURRENT_VIEW(state, view) {
state.currentView = view
},
SET_APP_WIDTH(state, scale) {
state.appSize = scale
},
}
const getters = {
currentView: state => state.currentView,
appSize: state => state.appSize,
api: state => state.config.api,
config: state => state.config,