mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-06 03:57:53 +08:00
perf[store]: add support to sub-modules (#2047)
This commit is contained in:
parent
40431fdfc8
commit
d0fcbbaa28
@ -5,7 +5,7 @@ import getters from './getters'
|
|||||||
Vue.use(Vuex)
|
Vue.use(Vuex)
|
||||||
|
|
||||||
// https://webpack.js.org/guides/dependency-management/#requirecontext
|
// https://webpack.js.org/guides/dependency-management/#requirecontext
|
||||||
const modulesFiles = require.context('./modules', false, /\.js$/)
|
const modulesFiles = require.context('./modules', true, /\.js$/)
|
||||||
|
|
||||||
// you do not need `import app from './modules/app'`
|
// you do not need `import app from './modules/app'`
|
||||||
// it will auto require all vuex module from modules file
|
// it will auto require all vuex module from modules file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user