细节完善

This commit is contained in:
kron
2025-08-11 09:13:43 +08:00
parent ae245872f4
commit 42324e8755
3 changed files with 15 additions and 16 deletions

View File

@@ -73,6 +73,10 @@ const onClick = async (e) => {
// 确认添加箭矢
const confirmAdd = () => {
if (props.onChange) {
targetPos.value = {
x: zoomPos.value.x,
y: zoomPos.value.y,
};
props.onChange({
x: arrow.value.x / scale.value,
y: arrow.value.y / scale.value,