Ant Design Pro Vue 填坑记
Issus
- We’re sorry but blog doesn’t work properly without JavaScript enable
Fixed issue
了很多问答,其实问题并不是出在router文件夹的index.js文件中的mode
其实是在于你的组件并没有正确的引入进来。
文件路径 src\router\generator-routers.js中的export const generator = (routerMap, parent) 方法
component: (constantRouterComponents[item.component || item.key]) || (() => import(@/views/${cc})),
需要debug这些问题
看看到底导入了没有。
未完待续
本文解决了AntDesignProVue框架中路由组件未能正确导入的问题,详细分析了generator-routers.js文件中component属性配置错误的原因,并提供了debug技巧。
873

被折叠的 条评论
为什么被折叠?



