🐞 fix(ID1000733): 修复底部栏按钮不见的问题

This commit is contained in:
xuan 2022-11-18 17:33:04 +08:00
parent 8deb8e56f0
commit 949bb9149b

View File

@ -60,6 +60,8 @@ const ShoppingCartContainer: FC = () => {
}
const listHeightRef = useRef('auto')
// 强制刷新
const [, setForceUpdate] = useState({})
const { fetchData, state } = ShoppingCartListApi()
@ -137,6 +139,8 @@ const ShoppingCartContainer: FC = () => {
const bottomBarHeight = res[2].height
const listHeight = containerHeight - topBarHeight - bottomBarHeight
listHeightRef.current = listHeight + 'px'
// 强制刷新
setForceUpdate({})
})
})()
}, [])