From d3c718b57794841737ae31cbcc23dce8b7633fb4 Mon Sep 17 00:00:00 2001 From: DacongDA Date: Mon, 21 Jul 2025 10:16:07 +0800 Subject: [PATCH] feat: fix bug that language cannot be switched to user selected language (#3980) --- web/src/App.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/App.js b/web/src/App.js index 0e3ed456..88bd97a4 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -247,7 +247,9 @@ class App extends Component { account.organization = res.data2; accessToken = res.data.accessToken; - this.setLanguage(account); + if (!localStorage.getItem("language")) { + this.setLanguage(account); + } this.setTheme(Setting.getThemeData(account.organization), Conf.InitThemeAlgorithm); setTourLogo(account.organization.logo); setOrgIsTourVisible(account.organization.enableTour);