mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
33 lines
546 B
JavaScript
Vendored
33 lines
546 B
JavaScript
Vendored
const defaultState = {
|
|
currentView: 'files',
|
|
appSize: undefined,
|
|
config: undefined,
|
|
}
|
|
const actions = {
|
|
|
|
}
|
|
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,
|
|
}
|
|
|
|
export default {
|
|
state: defaultState,
|
|
getters,
|
|
actions,
|
|
mutations
|
|
}
|