Commit 5b04cd09 by zhaochengxiang

模型定位

parent 23f82eba
...@@ -249,7 +249,7 @@ const ModelTable = (props) => { ...@@ -249,7 +249,7 @@ const ModelTable = (props) => {
}, [anchorTimestamp]) }, [anchorTimestamp])
useEffect(() => { useEffect(() => {
if (shouldScrollRef.current && gridRef.current && offset!==null) { if (shouldScrollRef.current && gridRef.current && offset!==null && (data||[]).length>0) {
setTimeout(() => { setTimeout(() => {
gridRef.current.scrollToRow(offset); gridRef.current.scrollToRow(offset);
shouldScrollRef.current = false; shouldScrollRef.current = false;
......
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