Skip to content

用户权限 401 与 菜单显示隐藏 404 的 BUG #2196

@ToQuery

Description

@ToQuery

Bug report(问题描述)

当权限不足的用户,进入页面时,无法区分权限不足还是因为路径错误导致的 404

Steps to reproduce(问题复现步骤)

  1. 正常运行前端项目,登录并进入系统
  2. 更改用户角色为edit
  3. 尝试进入 需要admin角色的页面,结果进入404页面

正常处理

更改用户角色后,尝试未授权页面,应提示未授权,进入错误路径时可提示 404

Link to minimal reproduction(最小可在线还原demo)

Other relevant information(格外信息)

  • Your OS: mac
  • Node.js version:
  • vue-element-admin version: all version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions