dva-admin
dva-admin copied to clipboard
dva admin antd dashboard
我咋bread.js中直接引用menu.js 会在const getPathSet = function () 函数中报 forEach没定义 但是通过index来间接引用 为什么就不报错呢?
请教下,app的state的curPowers,是怎么传到所有页面中去的呢?我看其他页面的model state里面没有存curPowers,但是却能取到app的state的curPowers, 是在哪弄的呢?
是在roadhogrc.js修改还是哪里
 以teacher这个角色登陆的时候,menu这边显示部分,这部分代码在哪,可否给我指向下,没找到,麻烦了。

function getAllPathPowers (menuArray, curPowers) { return menuArray.reduce((dir, item) => { dir[`/${item.key}`] = curPowers[item.id] if (item.children) { item.children.reduce((cdir, cur) => { dir[`/${cdir}/${cur.key}`] = curPowers[cur.id] return cdir }, item.key) getAllPathPowers(item.children, curPowers) }...