feat: fix bug that language cannot be switched to user selected language (#3980)

This commit is contained in:
DacongDA
2025-07-21 10:16:07 +08:00
committed by GitHub
parent ea68e6c2dc
commit d3c718b577

View File

@@ -247,7 +247,9 @@ class App extends Component {
account.organization = res.data2; account.organization = res.data2;
accessToken = res.data.accessToken; accessToken = res.data.accessToken;
if (!localStorage.getItem("language")) {
this.setLanguage(account); this.setLanguage(account);
}
this.setTheme(Setting.getThemeData(account.organization), Conf.InitThemeAlgorithm); this.setTheme(Setting.getThemeData(account.organization), Conf.InitThemeAlgorithm);
setTourLogo(account.organization.logo); setTourLogo(account.organization.logo);
setOrgIsTourVisible(account.organization.enableTour); setOrgIsTourVisible(account.organization.enableTour);