fix: 修改基本设置项

fix: 修改基本设置项
This commit is contained in:
Michael Bai 2021-10-29 13:14:44 +08:00 committed by Jiangjie.Bai
parent f56a3f5085
commit 2ee6fef2bc
3 changed files with 2 additions and 23 deletions

View File

@ -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'
}

View File

@ -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'

View File

@ -195,9 +195,6 @@ export default {
}
},
computed: {
loginConfirmEnabled() {
return this.$store.getters.publicSettings.LOGIN_CONFIRM_ENABLE
},
detailItems() {
return [
{