From 37daa9224afe9a81b5679ead133a66ae77a4c68d Mon Sep 17 00:00:00 2001 From: qingyu <14049064+qingyuya123@user.noreply.gitee.com> Date: Tue, 24 Jun 2025 11:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=B3=E5=B0=86=E4=BA=A7=E5=93=81-=E6=B7=B7?= =?UTF-8?q?=E4=B9=B1=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/components/EditDialog.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/product/components/EditDialog.vue b/src/views/product/components/EditDialog.vue index 0cef726..1bc11fc 100644 --- a/src/views/product/components/EditDialog.vue +++ b/src/views/product/components/EditDialog.vue @@ -233,8 +233,19 @@ function handleCreate() { type: 'create', title: '产品中心', }) + // 初始化所有字段 + formData.value = { + title: '', + categoryID: '', + compose: '', + target: '', + feature: [], + standard: [{ label: '', value: '' }], + images: [''], + sequence: 1, + status: 'enabled' + } initData() - formData.value.status = 'enabled' } //新建产品类别