diff --git a/src/views/home/modules/Category.vue b/src/views/home/modules/Category.vue index 33c5caf..d09194c 100644 --- a/src/views/home/modules/Category.vue +++ b/src/views/home/modules/Category.vue @@ -8,7 +8,7 @@ v-for="(item, index) in cate" :key="index" class="scroll-item" - @click="onNavigate(item.id)" + @click="onNavigate(item)" >
{{ item.name }}
@@ -81,7 +81,7 @@ export default { // 跳转 onNavigate(cateId) { this.$router.push({ - path: `/product/1/${cateId}` + path: `/product/1/${cateId.id}` }) }, // 初始化