Closed MrEastWood closed 5 years ago
看代码中,导航子项的的代码如下:
<el-menu-item width="180px" style="padding-left: 30px;padding-right:0px;margin-left: 0px;width: 170px;text-align: left" v-for="child in item.children" :index="child.path" :key="child.path">{{child.name}} </el-menu-item>
也就是说,导航的地址是 child的path字段。 看返回的导航json数据,员工资料->基本资料的path为/emp/basic
"children": [{ "id": null, "path": "/emp/basic", "component": "EmpBasic", "name": "基本资料", "iconCls": null, "children": [], "meta": {"keepAlive": false, "requireAuth": true} }]
请问/emp/basic 是怎么关联上EmpBasic.vue的?全局搜索/emp/basic,搜索不到对应的关联关系。
https://github.com/lenve/vhr/blob/master/vuehr/src/utils/utils.js#L44-L55
看代码中,导航子项的的代码如下:
也就是说,导航的地址是 child的path字段。 看返回的导航json数据,员工资料->基本资料的path为/emp/basic
请问/emp/basic 是怎么关联上EmpBasic.vue的?全局搜索/emp/basic,搜索不到对应的关联关系。