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

[优化] 设置信息保存在客户端本地 #41

Open
Ximu-Luya opened this issue Mar 15, 2024 · 1 comment
Open

[优化] 设置信息保存在客户端本地 #41

Ximu-Luya opened this issue Mar 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Ximu-Luya
Copy link
Collaborator

讨论区中提到,希望能够不用每次打开都重新选择利润排序,故可以设计将设置信息保存在本地,加载页面时就不需要再让用户额外操作了

@yjl9903
Copy link
Owner

yjl9903 commented Mar 15, 2024

套一个 useLocalStorage https://vueuse.org/core/useLocalStorage/

const listSortMode = ref<ListSortMode>('byCity')

@Ximu-Luya Ximu-Luya added the enhancement New feature or request label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants