From 5750bb706779da274d8e7a87e71416cb64d2df79 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sat, 19 Apr 2025 15:00:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8A=E4=BC=A0=E5=95=86=E7=94=A8?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=EF=BC=8C=E7=9B=B4=E6=8E=A5=E7=B2=98=E8=B4=B4?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9B=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?ec=E5=8A=A0=E5=AF=86=E8=AF=81=E4=B9=A6=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../certd-client/src/components/pem-input.vue | 13 +------ .../src/views/certd/pipeline/api.ts | 8 ++++ .../certd/pipeline/cert-upload/index.vue | 37 +++++++++++++----- .../views/certd/pipeline/cert-upload/use.tsx | 2 +- .../src/views/certd/pipeline/utils.ts | 38 +++++-------------- .../user/pipeline/cert-controller.ts | 13 ++++++- 6 files changed, 59 insertions(+), 52 deletions(-) diff --git a/packages/ui/certd-client/src/components/pem-input.vue b/packages/ui/certd-client/src/components/pem-input.vue index fed8c308..ec0ac685 100644 --- a/packages/ui/certd-client/src/components/pem-input.vue +++ b/packages/ui/certd-client/src/components/pem-input.vue @@ -1,7 +1,7 @@ @@ -17,7 +17,6 @@ const props = defineProps<{ }>(); const emit = defineEmits(["update:modelValue"]); -const textRef = ref(); function emitValue(value: string) { emit("update:modelValue", value); @@ -39,16 +38,6 @@ function onChange(e: any) { }; fileReader.readAsText(file); // 以文本形式读取文件 } - -watch( - () => props.modelValue, - value => { - textRef.value = value; - }, - { - immediate: true, - } -);