From 3f722e005b447540cab6a6948de14d3a812258d1 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Tue, 11 Jun 2024 16:06:22 +0800 Subject: [PATCH] add --- pages/index/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index c2382d1..c3a7c6a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -325,14 +325,14 @@ const goodClassTow = ref([]); // 二级分类 const goodClassThree = ref([]); // 三级分类 const classMap = new Map(); - const getgoodClassList = (pid = 0, three = 0) => { + const getgoodClassList = (pid = 0, three = 1) => { let page_no = classMap.get(pid) || 1; // console.log(classMap.get(pid)); goodClassListApi({ pid: pid, page_no: page_no, page_size: 30, - leve: three, + level: three, store_id: STORE_INFO.id || '' // 店铺id,用于获取店铺分类列表,如果为空则获取全部分类列表,否则获取店铺分类列表。 }).then(res => { if (pid == 0) { // 加载一级分类时设置全部分类