iview / iview/iview-admin

数组权限参数问题

Open
#609 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
16.3k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Description

最近用到数组权限问题,发现util.js中此方法util.showThisRoute里itAccess,currentAccess两参数在return时用反了。或者说是还在app.js中传递时传反了?麻烦看看修改哪个位置更合适?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect util.js, especially util.showThisRoute, and the corresponding call in app.js. Compare the itAccess and currentAccess argument order with the intended array-permission behavior, then confirm which location should be corrected. Done means route visibility checks use the correct access values consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authorization, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.