From f9e94386de4e1efd2fab426924b779faeb0a1154 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Fri, 2 Feb 2024 18:41:11 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E3=80=90=E6=A8=A1=E7=89=88=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E3=80=91=E5=88=9B=E5=BB=BA/=E6=9B=B4=E6=96=B0=20?= =?UTF-8?q?=E6=A8=A1=E7=89=88=E8=B4=A6=E5=8F=B7=E8=A1=A8=E5=8D=95=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E5=B8=8C=E6=9C=9B=E5=A2=9E=E5=8A=A0=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=AF=86=E9=92=A5=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounts/AccountTemplate/const.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/accounts/AccountTemplate/const.js b/src/views/accounts/AccountTemplate/const.js index ea8960f1e..138a68845 100644 --- a/src/views/accounts/AccountTemplate/const.js +++ b/src/views/accounts/AccountTemplate/const.js @@ -1,5 +1,5 @@ import { getUuidUpdateFromUrl } from '@/utils/common' -import { PasswordRule, UpdateToken } from '@/components/Form/FormFields' +import { PasswordRule, UpdateToken, UploadSecret } from '@/components/Form/FormFields' import Select2 from '@/components/Form/FormFields/Select2' import AutomationParams from '@/components/Apps/AutomationParams' import i18n from '@/i18n/i18n' @@ -68,6 +68,7 @@ export const templateFieldsMeta = (vm) => { type: 'textarea', rows: 4 }, + component: UploadSecret, hidden: (formValue) => formValue.secret_type !== 'ssh_key' || formValue.secret_strategy === 'random' }, passphrase: {