diff --git a/src/views/mall/product/category/index.vue b/src/views/mall/product/category/index.vue index 27ea5368..9bfd1eff 100644 --- a/src/views/mall/product/category/index.vue +++ b/src/views/mall/product/category/index.vue @@ -35,14 +35,14 @@ - - + + - - + + diff --git a/src/views/mall/product/spu/form/index.vue b/src/views/mall/product/spu/form/index.vue index b55dd31f..cfad29d7 100644 --- a/src/views/mall/product/spu/form/index.vue +++ b/src/views/mall/product/spu/form/index.vue @@ -161,7 +161,7 @@ const submitForm = async () => { deepCopyFormData.sliderPicUrls = newSliderPicUrls // 校验都通过后提交表单 const data = deepCopyFormData as ProductSpuApi.Spu - const id = params.spuId as unknown as number + const id = params.id as unknown as number if (!id) { await ProductSpuApi.createSpu(data) message.success(t('common.createSuccess'))