菜单权限问题,一直找不到原因
- Dominant language
- Vue
- Stars
- 16.3k
- Forks
- 4.7k
- PR merge metrics
- No merged PRs in 30d
Description
我做了静态写死的测试,但['user']还是能看到所有菜单
/router/index.js 第33行左右

下面是/router/routers.js
其中的一个菜单路径

但还是没效果,其他没改过代码,是2.0.0版本,为什么没反应,是我理解错了么?
是子菜单也要写access?我看不是父菜单写了,子也不会显示的么?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading /router/index.js around line 33 and compare its permission handling with the menu route definitions in /router/routers.js. Reproduce the reported static `['user']` case and trace whether parent and child menu access values are evaluated. Done means the intended menu visibility is consistent with the configured access rules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100