/** * @description router全局配置,如有必要可分文件抽离,其中asyncRoutes只有在intelligence模式下才会用到,pro版只支持remixIcon图标,具体配置请查看vip群文档 */ const List = [ { path: '/', name: 'Root', component: 'Layout', redirect: '/index', meta: { title: '首页', icon: 'home-2-line', }, children: [ { path: 'index', name: 'Index', component: '@/views/index', meta: { title: '首页', icon: 'home-2-line', noClosable: true, }, }, ], }, ] module.exports = [ { url: '/router/getList', type: 'get', response() { return { code: 200, msg: 'success', data: { list: List }, } }, }, ]