iview / iview/iview-admin

菜单权限问题,一直找不到原因

Open
#964 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
16.3k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Description

我做了静态写死的测试,但['user']还是能看到所有菜单
/router/index.js 第33行左右
![image](https://user-images.githubusercontent.com/4566082/45416866-684bcf00-b6b3-11e8-9d43-94da5ede235b.png)

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

![image](https://user-images.githubusercontent.com/4566082/45414666-7fd48900-b6ae-11e8-8948-6d710f75740c.png)

但还是没效果,其他没改过代码,是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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.