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

[bugfix]: fix theme is invalidated after refresh #2321

Merged
merged 7 commits into from
Jul 21, 2024

Conversation

keaifafafa
Copy link
Contributor

What's changed?

Originally, the theme setting only worked on setting page,other pages didn't work. Because theme was set in the DOM. So, I set the theme in localStorage and read the theme information from localStorage on every page refresh to resolve this issue.

Checklist

  • [✔ ] I have read the Contributing Guide
  • [✔] I have written the necessary doc or comment.
  • [✔] I have added the necessary unit tests and all cases have passed.

Add or update API

  • [✔ ] I have added the necessary e2e tests and all cases have passed.

@@ -46,5 +47,10 @@ export class AppComponent implements OnInit {
this.modalSrv.closeAll();
}
});
// 主题设置
Copy link
Contributor

@Calvin979 Calvin979 Jul 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All comments should be translated into English
@keaifafafa

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor

@tomsun28 tomsun28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm👍

@tomsun28 tomsun28 linked an issue Jul 21, 2024 that may be closed by this pull request
1 task
@tomsun28 tomsun28 merged commit 229b415 into apache:master Jul 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

[BUG] theme is invalidated after refresh
3 participants