mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-30 04:03:49 +00:00
fix: 修改基本设置项
fix: 修改基本设置项
This commit is contained in:
parent
f56a3f5085
commit
2ee6fef2bc
@ -39,17 +39,12 @@ export default {
|
||||
return {
|
||||
visible: false,
|
||||
fields: [
|
||||
'SECURITY_LOGIN_LIMIT_COUNT', 'SECURITY_LOGIN_LIMIT_TIME', 'LOGIN_CONFIRM_ENABLE',
|
||||
'SECURITY_LOGIN_LIMIT_COUNT', 'SECURITY_LOGIN_LIMIT_TIME',
|
||||
'USER_LOGIN_SINGLE_MACHINE_ENABLED', 'ONLY_ALLOW_EXIST_USER_AUTH',
|
||||
'ONLY_ALLOW_AUTH_FROM_SOURCE'
|
||||
],
|
||||
successUrl: { name: 'Settings', params: { activeMenu: 'EmailContent' }},
|
||||
fieldsMeta: {
|
||||
LOGIN_CONFIRM_ENABLE: {
|
||||
hidden: () => {
|
||||
return !this.$store.getters.hasValidLicense
|
||||
}
|
||||
}
|
||||
},
|
||||
url: '/api/v1/settings/setting/?category=security'
|
||||
}
|
||||
|
@ -99,26 +99,13 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
LOGIN_CONFIRM_ENABLE: {
|
||||
hidden: () => {
|
||||
return !this.$store.getters.hasValidLicense
|
||||
}
|
||||
},
|
||||
SECURITY_WATERMARK_ENABLED: {
|
||||
hidden: () => {
|
||||
return !this.$store.getters.hasValidLicense
|
||||
}
|
||||
},
|
||||
PasswordRule: {
|
||||
label: this.$t('setting.PasswordCheckRule'),
|
||||
component: PasswordRule
|
||||
},
|
||||
AuthLimit: {
|
||||
label: this.$t('setting.AuthLimit'),
|
||||
component: AuthLimit,
|
||||
hidden: () => {
|
||||
return !this.$store.getters.hasValidLicense
|
||||
}
|
||||
component: AuthLimit
|
||||
}
|
||||
},
|
||||
url: '/api/v1/settings/setting/?category=security'
|
||||
|
@ -195,9 +195,6 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
loginConfirmEnabled() {
|
||||
return this.$store.getters.publicSettings.LOGIN_CONFIRM_ENABLE
|
||||
},
|
||||
detailItems() {
|
||||
return [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user