From 113865512389f34b2f5ece7bfa9868dfa39053ae Mon Sep 17 00:00:00 2001 From: WUSIJIAN <13825895+wsj0228@user.noreply.gitee.com> Date: Tue, 9 Dec 2025 10:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=A7=E5=93=81=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E8=A1=A8=E5=8D=95=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AE=9A=E4=B9=89,=E5=B0=86=E9=83=A8=E5=88=86=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=AE=BE=E4=B8=BA=E5=8F=AF=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/customerService/product/component/editRole.vue | 8 ++++---- src/views/customerService/product/index.vue | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/customerService/product/component/editRole.vue b/src/views/customerService/product/component/editRole.vue index 5eb2c96..06c913e 100644 --- a/src/views/customerService/product/component/editRole.vue +++ b/src/views/customerService/product/component/editRole.vue @@ -44,9 +44,9 @@ import Editor from '/@/components/editor/index.vue'; interface ProductFormData { id: number; // 产品ID name: string; // 产品名称 - description: string; // 产品详情(富文本内容) - creator: ''; - modifier: ''; + description?: string; // 产品详情(富文本内容) + creator?: string; + modifier?: string; } /** @@ -126,7 +126,7 @@ const openDialog = async (row?: ProductFormData) => { const handleEditMode = async (row: ProductFormData) => { try { state.formData.id = row.id; - state.formData.description = row.description; + state.formData.description = row.description ?? ''; state.formData.name = row.name; console.log(row, '编辑'); diff --git a/src/views/customerService/product/index.vue b/src/views/customerService/product/index.vue index 5aea33e..8c82eeb 100644 --- a/src/views/customerService/product/index.vue +++ b/src/views/customerService/product/index.vue @@ -118,6 +118,7 @@ interface ProductData { createdAt: string; updatedAt: string; rag_doc_id?: string; // 添加缺失的属性 + description?: string; // 产品详情 } /**