Comments (2)
是key的问题
不加key是正常的
/**
* Create Persisted State Options
* 创建持久化状态选项
*
* @param keyPrefix prefix for storage key 储存键前缀
* @returns persisted state factory options
*/
export function createPersistedStateOptions(keyPrefix: string): PersistedStateFactoryOptions {
return {
storage: localStorage,
//key: (id) => `${keyPrefix}__${id}`,
serializer: customSerializer(SHOULD_ENABLE_STORAGE_ENCRYPTION),
};
}
或者使用字面量
export function createPersistedStateOptions(keyPrefix: string): PersistedStateFactoryOptions {
return {
storage: localStorage,
key: (id) => `aaaa_${id}`,
serializer: customSerializer(SHOULD_ENABLE_STORAGE_ENCRYPTION),
};
}
问题在export const PERSIST_KEY_PREFIX = getCommonStoragePrefix();
直接去掉key或者用默认给一个string前缀 getCommonStoragePrefix使用env读取
具体就不知道什么原因了
from vue-vben-admin.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
from vue-vben-admin.
Related Issues (20)
- DatePicker使用new Date()设置默认时间format格式化有问题
- 合并代码后,setFieldsValue 会重置部分其他字段 HOT 5
- 急急急! 路由 permissionMode ROLE 模式下,所有iframe外链 子菜单的名字全都变成了 登录 HOT 2
- [BUG]源码错误的位置使用resultField导致imgupload回显异常 && imgUpload set string的异常
- 有穿梭框的组件吗,多个穿梭框组件还可关联的,demo组件中没看到
- useContext hook优化建议
- 麻烦更新一下文档。最新的代码跟文档出入很大了 HOT 1
- [BUG]handleInputNumberValue sideEffect
- 很多 表单 都打不开 出现了 如下的错误 HOT 2
- ColumnSetting.vue的bug
- 为什么 thin 版本很久没有更新了
- [BUG]form中reset不能够还原componentProps中的defaultValue
- 2.10.1版本为什么VITE_GLOB_开头的变量在打包后更改_app.config.js无效
- useModalInner 回调里 setModalProps 不生效
- RangePicker field为数组时 , setFieldsValue不成功
- ImageUpload设置必填时,还没上传就提示校验信息
- 执行 pnpm install 出现错误 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND HOT 1
- vue 修饰符的使用 HOT 2
- 动态获取国际化失败,在setupI18n.ts中只要调用请求,页面就无法访问 HOT 1
- 当表单项默认值设置为0、-1、false 等情况下,执行 resetFields() 将无法为相应表单项赋值 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-vben-admin.