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

🐛 修复 Layout-Header 中英文切换和主题色切换混 #3 #4

Merged
merged 1 commit into from
May 26, 2024

Conversation

13982720426
Copy link
Contributor

Layout-Header

fix

  1. 修复 黑暗主题时, 切换中英主题恢复到默认主题

相关issue #3

原因

切换中英时更改了路由, 导致组件重新加载, 主题变量恢复到了默认值

解决方案

将主题变量缓存, 组件重新加载时读取缓存主题

@MrXujiang MrXujiang merged commit 1331acd into MrXujiang:main May 26, 2024
@MrXujiang
Copy link
Owner

Layout-Header

fix

  1. 修复 黑暗主题时, 切换中英主题恢复到默认主题

相关issue #3

原因

切换中英时更改了路由, 导致组件重新加载, 主题变量恢复到了默认值

解决方案

将主题变量缓存, 组件重新加载时读取缓存主题

has merge, good

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.

2 participants