lifanagju_citu 5 months ago
parent
commit
8733e11ce1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/mall/components/GoodsItem/index.vue

+ 2 - 2
src/views/mall/components/GoodsItem/index.vue

@@ -41,8 +41,8 @@ defineProps({
 })
 
 const handleDetail = (val) => {
-  debugger
-  window.open(`/mall/goodsDetail/${id}`)
+  const spuId = val.spuId || val.id // 商品id
+  window.open(`/mall/goodsDetail/${spuId}`)
 }
 </script>