mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-18 16:32:28 +00:00
perf: 修改翻译
This commit is contained in:
@@ -242,6 +242,7 @@
|
||||
"ReLogin": "重新登录"
|
||||
},
|
||||
"common": {
|
||||
"Setting": "设置",
|
||||
"ViewMore": "查看更多",
|
||||
"Announcement": "公告",
|
||||
"Logging": "日志记录",
|
||||
|
@@ -236,6 +236,7 @@
|
||||
"ReLogin": "Re-Login"
|
||||
},
|
||||
"common": {
|
||||
"Setting": "Setting",
|
||||
"ViewMore": "View more",
|
||||
"Announcement": "Announcement",
|
||||
"Logging": "Logging",
|
||||
|
@@ -115,36 +115,13 @@ export default {
|
||||
title: this.$t('users.SetMFA'),
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
label: this.object.mfa_enabled ? this.$t('common.Disable') : this.$t('common.Enable'),
|
||||
label: this.$t('common.Setting'),
|
||||
disabled: this.object.mfa_force_enabled
|
||||
},
|
||||
callbacks: {
|
||||
click: function() {
|
||||
if (this.object.mfa_enabled) {
|
||||
if (!this.object.mfa_force_enabled) {
|
||||
window.location.href = `/core/auth/profile/otp/disable/authentication/?next=${this.$route.fullPath}`
|
||||
}
|
||||
} else {
|
||||
window.location.href = `/core/auth/profile/otp/enable/start/?next=${this.$route.fullPath}`
|
||||
}
|
||||
}.bind(this)
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('users.UpdateMFA'),
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
label: this.$t('common.Update')
|
||||
},
|
||||
has: this.object.mfa_enabled,
|
||||
callbacks: {
|
||||
click: function() {
|
||||
if (this.$store.state.users.profile.is_otp_secret_key_bound) {
|
||||
window.location.href = `/core/auth/profile/otp/update/?next=${this.$route.fullPath}`
|
||||
} else {
|
||||
window.location.href = `/core/auth/profile/otp/enable/start/?next=${this.$route.fullPath}`
|
||||
}
|
||||
}.bind(this)
|
||||
window.location.href = `/core/auth/profile/mfa/`
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user