From 2ee6fef2bc8fa8f4d4913196a21866b96f2aff32 Mon Sep 17 00:00:00 2001 From: Michael Bai Date: Fri, 29 Oct 2021 13:14:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: 修改基本设置项 --- src/views/settings/Security/AuthLimit.vue | 7 +------ src/views/settings/Security/index.vue | 15 +-------------- src/views/users/User/UserDetail/UserInfo.vue | 3 --- 3 files changed, 2 insertions(+), 23 deletions(-) diff --git a/src/views/settings/Security/AuthLimit.vue b/src/views/settings/Security/AuthLimit.vue index 05c8c39bb..24f7d02cb 100644 --- a/src/views/settings/Security/AuthLimit.vue +++ b/src/views/settings/Security/AuthLimit.vue @@ -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' } diff --git a/src/views/settings/Security/index.vue b/src/views/settings/Security/index.vue index d0e8e8b9a..54534b16f 100644 --- a/src/views/settings/Security/index.vue +++ b/src/views/settings/Security/index.vue @@ -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' diff --git a/src/views/users/User/UserDetail/UserInfo.vue b/src/views/users/User/UserDetail/UserInfo.vue index 64aaaba67..45d81f7ed 100644 --- a/src/views/users/User/UserDetail/UserInfo.vue +++ b/src/views/users/User/UserDetail/UserInfo.vue @@ -195,9 +195,6 @@ export default { } }, computed: { - loginConfirmEnabled() { - return this.$store.getters.publicSettings.LOGIN_CONFIRM_ENABLE - }, detailItems() { return [ {