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