Commit 2988c71c authored by 张子雨's avatar 张子雨

Merge branch 'fix/sentryoffsetTop' into 'master'

Fix/sentryoffset top

See merge request !82
parents 9381262b e7ca6992
......@@ -300,7 +300,7 @@ const AfterSale = props => {
const clientInfo = getClientInfo();
const calculationLayoutHeight = e => {
const otherHeight = typeof e === 'number' ? e : 330;
const h = clientInfo.height - scrollYRef.current.offsetTop - otherHeight;
const h = clientInfo.height - (scrollYRef?.current?.offsetTop || 0) - otherHeight;
setTableScrollY(h < 500 ? '500px' : h);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment