This commit is contained in:
chenxin
2025-07-23 15:57:48 +08:00
parent 4843ddf9d1
commit 543fce74d6

View File

@@ -71,6 +71,14 @@ function SpSkuSelect(props) {
}
}, [info])
useEffect(() => {
if(open){
setState((draft) => {
draft.num = 1
})
}
}, [open])
const init = () => {
const { skuList, specItems } = info
console.log('skuList:', skuList)
@@ -367,7 +375,7 @@ function SpSkuSelect(props) {
} else if (type == 'addcart') {
return (
<AtButton circle loading={loading} type='primary' onClick={addToCart}>
{btnTxt}
{btnTxt}问我
</AtButton>
)
} else {