自动路由规则过滤优化

This commit is contained in:
aixianling
2022-03-28 15:27:07 +08:00
parent 2d4edcfc21
commit cd21fd3e73

View File

@@ -15,7 +15,7 @@ export default {
},
loadApps() {
//新App的自动化格式
let files = require.context('../../packages', true, /\.(\/.+)\/App[^\/]+\.vue$/)
let files = require.context('../../packages', true, /\.(\/.+)\/App[A-Z][^\/]+\.vue$/)
files.keys().map(path => {
if (files(path).default) {
let {name, label} = files(path).default,