From 26a539662e15c58ee87276404877077f0fd68b14 Mon Sep 17 00:00:00 2001 From: Yer <17633066053@163.com> Date: Fri, 16 Jun 2023 10:58:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BF=AE=E6=94=B9=E5=9C=A8?= =?UTF-8?q?=E4=B9=B0=E5=AE=B6=E7=AB=AF=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E4=B8=AD=E5=9B=A0=E4=B8=BAcategoryName=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=A1=B5=E9=9D=A2=E5=87=BA=E9=94=99=E4=B8=8D?= =?UTF-8?q?=E5=B1=95=E7=A4=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/GoodsDetail.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buyer/src/pages/GoodsDetail.vue b/buyer/src/pages/GoodsDetail.vue index 22820f71..d2c4b0ae 100644 --- a/buyer/src/pages/GoodsDetail.vue +++ b/buyer/src/pages/GoodsDetail.vue @@ -118,6 +118,7 @@ export default { .then((res) => { this.isLoading = false; if (res.success) { + const result = res.result; const cateName = res.result.categoryName; const cateId = result.data.categoryPath.split(","); @@ -126,7 +127,7 @@ export default { // 插入分类id和name cateArr.push({ id: e, - name: cateName[index], + name: cateName ? cateName[index] : "", }); }); this.categoryBar = cateArr;