mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-09 23:52:25 +08:00
部分中文转换为多语言代号
This commit is contained in:
@@ -39,7 +39,7 @@ func (this *IndexAction) RunGet(params struct{}) {
|
||||
module, ok := configloaders.FindFirstAdminModule(this.AdminId())
|
||||
if ok {
|
||||
if module != "dashboard" {
|
||||
for _, m := range configloaders.AllModuleMaps(this.Lang()) {
|
||||
for _, m := range configloaders.AllModuleMaps(this.LangCode()) {
|
||||
if m.GetString("code") == module {
|
||||
this.RedirectURL(m.GetString("url"))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user