Skip to content

Commit

Permalink
fix: 修改删除线方法
Browse files Browse the repository at this point in the history
  • Loading branch information
kakajun committed Dec 3, 2024
1 parent 5463fe9 commit 9a31b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sketch-ruler/src/sketch-ruler/useLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function useLine(props: Props, vertical: boolean) {
if (typeof index !== 'number') {
linesArrs.push(value)
} else {
linesArrs.splice(index, 1, value)
linesArrs[index] = value
}
}
}
Expand Down

0 comments on commit 9a31b93

Please sign in to comment.