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

@antdp/authorized新增localStorage配置 #281

Closed
justcodej opened this issue Mar 28, 2024 · 4 comments
Closed

@antdp/authorized新增localStorage配置 #281

justcodej opened this issue Mar 28, 2024 · 4 comments

Comments

@justcodej
Copy link

justcodej commented Mar 28, 2024

  1. @antdp/authorized默认是获取sessionStorage的authMenu来匹配权限,我现在遇到的问题是后台开发中如果我重新打开一个标签打开页面的话就会停留在登录页,但我的业务需求是需要从新的标签打开,望兼容localStorage。
    WX20240328-191340@2x

  2. 第二个问题从"@antdp/basic-layouts": "2.0.16之后"组件的index.css没有经过编译,样式在safari中不生效
    1711624950515

jaywcjlove added a commit that referenced this issue Mar 28, 2024
jaywcjlove added a commit that referenced this issue Mar 28, 2024
jaywcjlove added a commit that referenced this issue Mar 28, 2024
@jaywcjlove
Copy link
Contributor

@justcodej 更新 v2.0.24 解决来 css 的问题

1 的问题我看看能不能添加个配置

jaywcjlove added a commit that referenced this issue Mar 28, 2024
@jaywcjlove
Copy link
Contributor

@jaywcjlove 配置已经添加

### ANTD_IS_STORAGE
默认 `sessionStorage` 存储,如果需要使用 `localStorage` 存储,设置为 `false`
```diff
import config from '@antdp/config';
import proxy from './proxy';
import router from './router.json';
export default config(router, {
proxy,
define: {
+ ANTD_IS_STORAGE: false
},
);
```

jaywcjlove added a commit that referenced this issue Mar 28, 2024
@jaywcjlove
Copy link
Contributor

@justcodej Upgrade v2.1.0

@justcodej
Copy link
Author

已解决,很高效

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