diff --git a/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue b/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue index c62d23314d..0f16482961 100644 --- a/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue +++ b/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue @@ -28,7 +28,14 @@ const pvpOptions = [ { value: '3', label: t('commons.date.three_months') }, { value: '4', label: t('commons.date.one_month') } ] - +const requireKeys = [ + 'logLiveTime', + 'thresholdLogLiveTime', + 'exportFileLiveTime', + 'frontTimeOut', + 'loginLimitTime', + 'loginLimitRate' +] const state = reactive({ form: reactive({ dsIntervalTime: '30', @@ -166,16 +173,7 @@ const edit = ( state.openOptions = openOptions || [] state.settingList = list.map(item => { const pkey = item.pkey - if (pkey === 'basic.logLiveTime' || pkey === 'basic.thresholdLogLiveTime') { - rule[pkey.split('.')[1]] = [ - { - required: true, - message: t('common.require'), - trigger: ['blur', 'change'] - } - ] - } - if (pkey === 'basic.exportFileLiveTime' || pkey === 'basic.frontTimeOut') { + if (requireKeys.some(requireKey => `basic.${requireKey}` === pkey)) { rule[pkey.split('.')[1]] = [ { required: true, diff --git a/de-xpack b/de-xpack index 6b08496835..3bc8d0b376 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit 6b084968357d809d46b9b6f2bc2c2fa787f28f6e +Subproject commit 3bc8d0b3767818d5ba49f13b7b72b7e82b4e2c27