lifanagju_citu 5 ماه پیش
والد
کامیت
8733e11ce1
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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>