-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
web-app/src/app/app.component.ts
Outdated
@@ -46,5 +47,10 @@ export class AppComponent implements OnInit { | |||
this.modalSrv.closeAll(); | |||
} | |||
}); | |||
// 主题设置 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm👍
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
Add or update API