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, - } -);