mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-25 02:10:39 +00:00
vue router implemented
This commit is contained in:
Vendored
-5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user