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' } //新建产品类别