vue-vben-admin
vue-vben-admin copied to clipboard
Bug: ignoreAccess 无效
Version
Vben Admin V5
Describe the bug?
路由配置 ignoreAccess ,通过地址栏访问依然会被拦截跳转到登陆页面
Reproduction
- 修改
apps/web-antd/src/router/routes/modules/demos.ts
,添加ignoreAccess
属性
19 meta: {
20 title: $t('page.demos.antd'),
+ 21 ignoreAccess: true
22 },
- 浏览器访问
http://localhost:5666/demos/ant-design
,会跳转到登陆页面
System Info
System:
OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
Memory: 14.10 GB / 31.18 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.15.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.7.0 - /usr/local/bin/npm
pnpm: 9.4.0 - /usr/local/bin/pnpm
Browsers:
Chrome: 112.0.5615.165
Relevant log output
No response
Validations
- [X] Read the docs
- [X] Ensure the code is up to date. (Some issues have been fixed in the latest version)
- [X] I have searched the existing issues and checked that my issue does not duplicate any existing issues.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.