From 80c7d5a0331b815887593c1799d6e6e693a4b34b Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 3 Dec 2024 09:45:23 +0800 Subject: [PATCH] =?UTF-8?q?perf(X-Pack):=20=E7=99=BB=E5=BD=95=E9=99=90?= =?UTF-8?q?=E5=88=B6-=E8=A1=A8=E5=8D=95=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/parameter/basic/BasicEdit.vue | 20 +++++++++---------- de-xpack | 2 +- 2 files changed, 10 insertions(+), 12 deletions(-) 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