From 8c16f8df9c6c392bc3b785038a1abb03ce8ef326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sun, 28 Jul 2024 02:12:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SelectGoodsCategory/index.vue | 2 +- src/components/SelectSpec/index.vue | 2 +- src/views/shop/goods/components/goodsEdit.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/SelectGoodsCategory/index.vue b/src/components/SelectGoodsCategory/index.vue index c11aa46..6b5d577 100644 --- a/src/components/SelectGoodsCategory/index.vue +++ b/src/components/SelectGoodsCategory/index.vue @@ -17,7 +17,6 @@ import { listGoodsCategory } from '@/api/shop/goodsCategory'; import { toTreeData } from 'ele-admin-pro/es'; import { GoodsCategory } from '@/api/shop/goodsCategory/model'; - import { FileRecordParam } from '@/api/system/file/model'; const props = withDefaults( defineProps<{ @@ -114,6 +113,7 @@ watch( () => props.options, () => { + console.log(props.merchantId); if (props.merchantId) { where.merchantId = props.merchantId; } diff --git a/src/components/SelectSpec/index.vue b/src/components/SelectSpec/index.vue index bd3421c..8018743 100644 --- a/src/components/SelectSpec/index.vue +++ b/src/components/SelectSpec/index.vue @@ -40,7 +40,7 @@ ); const emit = defineEmits<{ - (e: 'done', Merchant): void; + (e: 'done', Spec): void; (e: 'clear'): void; }>(); diff --git a/src/views/shop/goods/components/goodsEdit.vue b/src/views/shop/goods/components/goodsEdit.vue index fa83eb6..828a587 100644 --- a/src/views/shop/goods/components/goodsEdit.vue +++ b/src/views/shop/goods/components/goodsEdit.vue @@ -608,7 +608,7 @@ const goodsId = props.data?.goodsId; if(goodsId){ listGoodsSpec({goodsId}).then(data => { - console.log(data[0].specValue); + const specValue = data[0].specValue; if(specValue){ spec.value = JSON.parse(specValue).map( d => {