import router from './index' import List from './list' List.forEach(element => { router.addRoute(element) // 动态添加更多的路由规则 })