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

不再覆写浏览器 localStorage 存取数据 #6956

Closed
88250 opened this issue Dec 31, 2022 · 2 comments
Closed

不再覆写浏览器 localStorage 存取数据 #6956

88250 opened this issue Dec 31, 2022 · 2 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Dec 31, 2022

#6404 中覆写了浏览器 localStorage 存取数据函数,这里不再覆写(不改变浏览器的实现),也不再使用浏览器的 localStorage,以便后续支持工作空间多开 #4567

对于开发者来说,建议不要使用 localStorage,否则切换工作空间后可能会造成数据覆盖丢失。如果需要持久化数据,可考虑使用 /api/storage/setLocalStorage /api/storage/getLocalStorage 等接口 #6960

@88250 88250 added this to the 2.6.1 milestone Dec 31, 2022
Vanessa219 added a commit that referenced this issue Dec 31, 2022
Vanessa219 added a commit that referenced this issue Dec 31, 2022
Vanessa219 added a commit that referenced this issue Dec 31, 2022
Vanessa219 added a commit that referenced this issue Dec 31, 2022
@Zuoqiu-Yingyi
Copy link
Contributor

接口 /api/storage/setLocalStorage 可以只复写部分字段吗, 可以删除指定字段吗❓

@88250
Copy link
Member Author

88250 commented Jan 1, 2023

接口 /api/storage/setLocalStorage 可以只复写部分字段吗, 可以删除指定字段吗❓

#6960 这里讨论提一下需求吧。

@88250 88250 closed this as completed Jan 1, 2023
Vanessa219 added a commit that referenced this issue Jan 1, 2023
Vanessa219 added a commit that referenced this issue Jan 1, 2023
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

3 participants