mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-23 17:50:38 +00:00
28 lines
417 B
JavaScript
Vendored
28 lines
417 B
JavaScript
Vendored
const defaultState = {
|
|
appSize: undefined,
|
|
config: undefined,
|
|
}
|
|
const actions = {
|
|
|
|
}
|
|
const mutations = {
|
|
SET_CONFIG(state, config) {
|
|
state.config = config
|
|
},
|
|
SET_APP_WIDTH(state, scale) {
|
|
state.appSize = scale
|
|
},
|
|
}
|
|
const getters = {
|
|
appSize: state => state.appSize,
|
|
api: state => state.config.api,
|
|
config: state => state.config,
|
|
}
|
|
|
|
export default {
|
|
state: defaultState,
|
|
getters,
|
|
actions,
|
|
mutations
|
|
}
|