根据文件路径 所有主要组件名称相同 动态路由 src/views/public/container.vue中的contentComponent计算属性为主要 路由
启动方法 与iview-router1一样 npm install npm run dev 打包是npm run build。
用文件夹路径做路由 主要是用require.context
方法实现,根据实际需求做变化
wangkaiwen / iview-router2 Goto Github PK
View Code? Open in Web Editor NEW根据文件路径 所有主要组件名称相同 动态路由 src/views/public/container.vue中的contentComponent计算属性为主要 路由