diff --git a/src/api/mall/product/management/type/index.ts b/src/api/mall/product/management/type/index.ts index 3d372c45..a1224d48 100644 --- a/src/api/mall/product/management/type/index.ts +++ b/src/api/mall/product/management/type/index.ts @@ -1,6 +1,6 @@ export interface SpuType { name?: string // 商品名称 - categoryId?: number // 商品分类 + categoryId?: number | undefined // 商品分类 keyword?: string // 关键字 unit?: string // 单位 picUrl?: string // 商品封面图 diff --git a/src/views/mall/product/management/addForm.vue b/src/views/mall/product/management/addForm.vue index f915b204..9ef24f69 100644 --- a/src/views/mall/product/management/addForm.vue +++ b/src/views/mall/product/management/addForm.vue @@ -49,7 +49,7 @@ const DescriptionRef = ref>() // 商品详 const OtherSettingsRef = ref>() // 其他设置Ref const formData = ref({ name: '', // 商品名称 - categoryId: 0, // 商品分类 + categoryId: undefined, // 商品分类 keyword: '', // 关键字 unit: '', // 单位 picUrl: '', // 商品封面图 diff --git a/src/views/mall/product/management/components/BasicInfoForm.vue b/src/views/mall/product/management/components/BasicInfoForm.vue index 8074e67b..94fe1e10 100644 --- a/src/views/mall/product/management/components/BasicInfoForm.vue +++ b/src/views/mall/product/management/components/BasicInfoForm.vue @@ -10,7 +10,7 @@ diff --git a/src/views/mall/product/management/components/OtherSettingsForm.vue b/src/views/mall/product/management/components/OtherSettingsForm.vue index 155a0aba..63fdb22a 100644 --- a/src/views/mall/product/management/components/OtherSettingsForm.vue +++ b/src/views/mall/product/management/components/OtherSettingsForm.vue @@ -92,9 +92,9 @@ const onChangeGroup = () => { const OtherSettingsFormRef = ref() // 表单Ref // 表单数据 const formData = ref({ - sort: 12, // 商品排序 - giveIntegral: 666, // 赠送积分 - virtualSalesCount: 565656, // 虚拟销量 + sort: 1, // 商品排序 + giveIntegral: 1, // 赠送积分 + virtualSalesCount: 1, // 虚拟销量 recommendHot: false, // 是否热卖 recommendBenefit: false, // 是否优惠 recommendBest: false, // 是否精品