Просмотр исходного кода

fix:修改商品分类获取的code为id

xyh 5 месяцев назад
Родитель
Сommit
8b696a70d1
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      src/points/components/product-list/product-list.vue
  2. 1 0
      src/points/home/index.vue

+ 1 - 1
src/points/components/product-list/product-list.vue

@@ -156,7 +156,7 @@ export default {
         ...(Array.isArray(data) ? data.map(item => {
           return {
             name: item.childName,
-            key: item.childCode
+            key: item.childId
           }
         }) : [])
       ]

+ 1 - 0
src/points/home/index.vue

@@ -207,6 +207,7 @@ export default {
             fontSize: 14,
             safeAreaInsetTop:true
           })
+          _this.fetchPointsInfo();
         }
       }).catch(error => {
         console.error('签到失败:', error);