🐞 fix(ID1000733): 修复底部栏按钮不见的问题
This commit is contained in:
parent
8deb8e56f0
commit
949bb9149b
@ -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({})
|
||||
})
|
||||
})()
|
||||
}, [])
|
||||
|
Loading…
x
Reference in New Issue
Block a user