iczer/vue-antd-admin

动态注册路由组件失败

tonyjiafan opened this issue · 0 comments

请教下作者: @iczer
注册路由组件不在前端写死,想从api中拿到组件的路径动态注册。
路径:
图左侧src/mock/user/routes.js 中模拟api返回数据
图右侧src/router/async/router.map.js 中编写下面的代码。
image

谢谢!