From fc08f543946fb7cbbbaec31ea6f50963eb990f08 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Fri, 11 Nov 2022 16:39:11 +0800 Subject: [PATCH] perf: change secret --- src/views/accounts/ChangeAuthPlan/fields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/accounts/ChangeAuthPlan/fields.js b/src/views/accounts/ChangeAuthPlan/fields.js index 7be55419e..a28c3ba77 100644 --- a/src/views/accounts/ChangeAuthPlan/fields.js +++ b/src/views/accounts/ChangeAuthPlan/fields.js @@ -17,7 +17,7 @@ function getAssetPasswordRulesItems() { prop: 'length', label: i18n.t('xpack.ChangeAuthPlan.PasswordLength'), rules: [Required], - hidden: ({ secret_strategy, secret_type }) => (secret_strategy !== 'specific' || secret_type !== 'password') + hidden: ({ secret_strategy, secret_type }) => (secret_strategy === 'specific' || secret_type !== 'password') } ] }