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

网站崩溃紧急修复 #52

Merged
merged 2 commits into from
Mar 6, 2025
Merged

网站崩溃紧急修复 #52

merged 2 commits into from
Mar 6, 2025

Conversation

Autumnal-Joy
Copy link
Collaborator

@Autumnal-Joy Autumnal-Joy commented Mar 6, 2025

fix:

  1. 修复useStorage解析异常导致网站崩溃的bug。原因是之前useTheme自己存取LocalStorage时,没有对字符串进行序列化,localStorage存的是 "light" 或 "dark"。新版本useStorage控制的localStorage存取的是"'light'"或"'dark'"。如果是旧版本存的theme值被新版本解析,JSON.parse会产生异常。
  2. 修复预览循环渲染key重复的问题。

@Autumnal-Joy Autumnal-Joy merged commit 695e69b into huxulm:main Mar 6, 2025
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

Successfully merging this pull request may close these issues.

1 participant