过滤null商品
This commit is contained in:
@@ -2387,6 +2387,9 @@ export default {
|
|||||||
async getGoods() {
|
async getGoods() {
|
||||||
const res = await getGoodsLists(this.goods.query);
|
const res = await getGoodsLists(this.goods.query);
|
||||||
const goods= res.records.filter((v) => {
|
const goods= res.records.filter((v) => {
|
||||||
|
if(!v){
|
||||||
|
return false
|
||||||
|
}
|
||||||
let isShow = true;
|
let isShow = true;
|
||||||
if (v.typeEnum !== "sku") {
|
if (v.typeEnum !== "sku") {
|
||||||
isShow = v.specList.length >= 1;
|
isShow = v.specList.length >= 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user