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

自定义 Key 未生效 #2

Open
BTMuli opened this issue Nov 9, 2022 · 1 comment
Open

自定义 Key 未生效 #2

BTMuli opened this issue Nov 9, 2022 · 1 comment
Assignees

Comments

@BTMuli
Copy link

BTMuli commented Nov 9, 2022

相关代码:

state: () => {
return {
	token: '',
	username: '',
	password: '',
	nickName: '',
	defaultMail: '',
	phone: '',
	company: '',
	job: '',
};
unistorage: [
{
	key: 'app',
	paths: ['token'],
},
{
	key: 'userInfo',
	paths: ['nickName', 'defaultMail', 'phone', 'company', 'job'],
},
],

实际运行效果:
image

@markthree markthree self-assigned this Nov 9, 2022
@markthree
Copy link
Member

@BTMuli 不支持多 key, 欢迎 pr

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

No branches or pull requests

2 participants