From 9b8e39f3d188b4311c1474900f27fbefe5c57390 Mon Sep 17 00:00:00 2001 From: macro Date: Mon, 7 Oct 2019 15:32:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E7=9C=8Bsku?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=A1=86=E6=8A=A5400=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pms/product/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/pms/product/index.vue b/src/views/pms/product/index.vue index c81b7b5..b391169 100644 --- a/src/views/pms/product/index.vue +++ b/src/views/pms/product/index.vue @@ -441,9 +441,11 @@ fetchSkuStockList(row.id,{keyword:this.editSkuInfo.keyword}).then(response=>{ this.editSkuInfo.stockList=response.data; }); - fetchProductAttrList(row.productAttributeCategoryId,{type:0}).then(response=>{ - this.editSkuInfo.productAttr=response.data.list; - }); + if(row.productAttributeCategoryId!=null){ + fetchProductAttrList(row.productAttributeCategoryId,{type:0}).then(response=>{ + this.editSkuInfo.productAttr=response.data.list; + }); + } }, handleSearchEditSku(){ fetchSkuStockList(this.editSkuInfo.productId,{keyword:this.editSkuInfo.keyword}).then(response=>{