From ed8a54a2bc86657a4ead5461dd23261165b5064f Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 8 Jul 2024 11:29:11 +0800 Subject: [PATCH] chore: 1 --- .../ui/certd-client/src/views/certd/mine/user-profile.vue | 1 - .../certd/pipeline/pipeline/component/step-form/index.vue | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/ui/certd-client/src/views/certd/mine/user-profile.vue b/packages/ui/certd-client/src/views/certd/mine/user-profile.vue index 7edecc18..1f23a1cd 100644 --- a/packages/ui/certd-client/src/views/certd/mine/user-profile.vue +++ b/packages/ui/certd-client/src/views/certd/mine/user-profile.vue @@ -97,7 +97,6 @@ async function changePassword() { const formOptions = buildFormOptions(passwordFormOptions); formOptions.newInstance = true; //新实例打开 passwordFormRef.value = await openDialog(formOptions); - debugger; console.log(passwordFormRef.value); } diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/step-form/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/step-form/index.vue index aef3938a..30598ba5 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/step-form/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/step-form/index.vue @@ -222,6 +222,10 @@ export default { ); } } + //设置初始值 + if (input.default != null && currentStep.value.input[key] == null) { + currentStep.value.input[key] = input.default ?? input.value; + } } }