From f422dbaa00762d6b6a8d7963be2eb82671f3f7e8 Mon Sep 17 00:00:00 2001 From: zoujing Date: Thu, 20 Nov 2025 14:02:54 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=B7=A5=E5=8D=95=E7=9A=84?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CreateServiceOrder/index.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/CreateServiceOrder/index.vue b/src/components/CreateServiceOrder/index.vue index d7db722..8caaca5 100644 --- a/src/components/CreateServiceOrder/index.vue +++ b/src/components/CreateServiceOrder/index.vue @@ -149,6 +149,8 @@ const originalPhone = ref(""); const contactPhone = ref(""); // 是否用户已编辑过手机号(一旦编辑则不再脱敏) const hasEditedPhone = ref(false); +// 需求信息描述:使用可写的 ref,并从工具结果初始化 +const contactText = ref(""); // 手机号脱敏:138****1234(仅对11位数字进行处理) const maskPhone = (phone) => { @@ -163,13 +165,10 @@ watch( originalPhone.value = val?.userPhone || ""; hasEditedPhone.value = false; contactPhone.value = maskPhone(originalPhone.value); + contactText.value = val?.callServiceContent || ""; }, { immediate: true } ); -const contactText = computed({ - get: () => toolResult.value?.callServiceContent || "", - set: (val) => (contactText.value = val), -}); // 处理图片上传 const handleChooseImage = () => {