const components = {}
const fileLoader = require.context('./', false, /.*\/(?!\bindex\b).*\.vue/) // 形式[./a.vue],dou
fileLoader.keys().forEach(path => {
const fName = path.match(/.*\/(.*?)\.vue/)[1]
components[fName] = fileLoader(path).default
})