daoji_h5/store/index.js

10 lines
276 B
JavaScript
Raw Normal View History

2024-03-21 05:53:51 +00:00
import Vue from "vue"
import Vuex from "vuex"
Vue.use(Vuex)
const files = require.context('./modules', false, /\.js$/)
const modules = {}
files.keys().forEach(key => {
modules[key.replace(/(\.\/|\.js)/g, '')] = files(key).default
})
export default new Vuex.Store({modules})