Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧐[问题 | question] access配置 这个在哪里配置呢? #10039

Closed
wsx0214 opened this issue Jul 19, 2022 · 3 comments
Closed

🧐[问题 | question] access配置 这个在哪里配置呢? #10039

wsx0214 opened this issue Jul 19, 2022 · 3 comments

Comments

@wsx0214
Copy link

wsx0214 commented Jul 19, 2022

🧐 问题描述 | Problem description

想修改为没有就表示没有访问权限,官方文档有个配置说明,这个在哪个文件里面配置呢?

默认逻辑是没有写明权限表示有访问权限,如果要修改为没有写明权限表示没有访问权限,请开启它

export default { access: { strictMode: true, }, }

@github-actions
Copy link

github-actions bot commented Jul 19, 2022

以下的 Issues 可能会帮助到你 / The following issues may help you

@chenshuai2144
Copy link
Collaborator

在 config/config.ts 中配置

access: { strictMode: true, },

具体代码在这里

https:/ant-design/ant-design-pro/blob/c77820812e215bdab149f5aae529f615790c33df/config/config.ts


  /**
   * @name 权限插件
   * @description 基于 initialState 的权限插件,必须先打开 initialState
   * @doc https://umijs.org/docs/max/access
   */
  access: {},

@wsx0214
Copy link
Author

wsx0214 commented Jul 21, 2022

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants