mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-13 20:00:25 +08:00
部分菜单实现中英文切换
This commit is contained in:
@@ -205,8 +205,21 @@ Tea.context(function () {
|
||||
return message
|
||||
}
|
||||
}
|
||||
if (window.LANG_MESSAGES_BASE != null) {
|
||||
let message = window.LANG_MESSAGES_BASE[code]
|
||||
if (typeof message == "string") {
|
||||
return message
|
||||
}
|
||||
}
|
||||
return "{{ LANG('" + code + "') }}"
|
||||
}
|
||||
|
||||
this.switchLang = function () {
|
||||
this.$post("/settings/lang/switch")
|
||||
.success(function () {
|
||||
window.location.reload()
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
window.NotifySuccess = function (message, url, params) {
|
||||
|
||||
Reference in New Issue
Block a user