Commit 1e500fcb by zhaochengxiang

模型列表

parent 8067767a
...@@ -267,7 +267,7 @@ const ModelTable = (props) => { ...@@ -267,7 +267,7 @@ const ModelTable = (props) => {
useEffect(() => { useEffect(() => {
if (shouldScrollRef.current && gridRef.current && offset!==null && (data||[]).length>0) { 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;
}, 300) }, 300)
} }
......
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