Commit 2e7a2c4d by zhaochengxiang

定位

parent a24d28d4
......@@ -303,7 +303,7 @@ const ModelTable = (props) => {
const _id = getQueryParam(AnchorId, props.location.search);
var scroll = new SmoothScroll();
var anchor = document.querySelector(`#${_id}`);
var anchor = document.querySelector(`#row-${_id}`);
if (anchor) {
scroll.animateScroll(anchor);
......
......@@ -239,7 +239,7 @@ function FC<Row extends RowData, SR, K extends React.Key = React.Key>(props: Dat
disable={props.row.__type__===RowType.Detail}
>
<GridRow
id={props.row.id}
id={`row-${props.row.id}`}
onContextMenu={(e: React.MouseEvent) => {
setContextItem(props.row);
}}
......
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