fix:修复?.语法不兼容问题

This commit is contained in:
wangsongsole 2022-10-08 16:49:08 +08:00
parent 1591265987
commit b03a59eaa6
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@
let goodsInform = goodsDetail.entity; //商品信息 let goodsInform = goodsDetail.entity; //商品信息
this.goodInfo = goodsInform; this.goodInfo = goodsInform;
let goods_desc = goodsInform.describe_url; let goods_desc = goodsInform.describe_url;
this.goodsShow = goods_desc?.length > 0 ? goods_desc : [goodsDetail.show_url]; this.goodsShow = goods_desc && goods_desc.length > 0 ? goods_desc : [goodsDetail.show_url];
this.detailUrl = goodsInform.detail_url ? goodsInform.detail_url : ''; this.detailUrl = goodsInform.detail_url ? goodsInform.detail_url : '';
this.productType = goodsDetail.entity.account_type; this.productType = goodsDetail.entity.account_type;
this.$nextTick(function () { this.$nextTick(function () {