兼容单规格数据

This commit is contained in:
chenxin
2025-07-23 17:26:00 +08:00
parent 69004e1ad9
commit b264a2d8c7

View File

@@ -67,12 +67,13 @@ function SpSkuSelect(props) {
draft.curItem = null
draft.skuText = ''
draft.minNum = specItemed()
draft.num = specItemed()
})
}
}, [info])
useEffect(() => {
if(open){
if(!open){
setState((draft) => {
draft.num = 1
})