fix some bug

This commit is contained in:
wjyLearn
2026-02-06 15:56:04 +08:00
parent a1d6ec8d26
commit 8a60f89b46
7 changed files with 42 additions and 8 deletions

View File

@@ -2044,7 +2044,15 @@ void WebViewPanel::SwitchWebContent(std::string modelname, int refresh)
wxString strJS = "GotoMenu(\"home\")";
WebView::RunScript(m_browserLeft, strJS);
wxString htmlUrl = wxString::Format("file:///%s/web/homepage3/login.html", from_u8(resources_dir()));
wxString regionStr = "";
std::string region = wxGetApp().app_config->get("region");
if (region == "China") {
regionStr = "CN";
}
else {
regionStr = "Other";
}
wxString htmlUrl = wxString::Format("file:///%s/web/homepage3/login.html?lang=%s&region=%s", from_u8(resources_dir()), GetStudioLanguage(),regionStr);
m_browser->LoadURL(htmlUrl);