We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fddecc9 commit 1c7a78dCopy full SHA for 1c7a78d
1 file changed
dashboard/src/components/actions/InputAction.vue
@@ -824,12 +824,19 @@ export default {
824
825
imageCoords.value = { x, y }
826
827
- // 将坐标填入输入框
828
- const coordsText = `${x},${y}`
829
- inputValue.value = coordsText
+ // 将坐标累积到输入框中,多个坐标用-符号分隔
+ const newCoordsText = `${x},${y}`
+
830
+ if (inputValue.value.trim()) {
831
+ // 如果输入框已有内容,用-符号分隔追加新坐标
832
+ inputValue.value = `${inputValue.value}-${newCoordsText}`
833
+ } else {
834
+ // 如果输入框为空,直接设置新坐标
835
+ inputValue.value = newCoordsText
836
+ }
837
838
// 触发输入验证
- validateInput(coordsText)
839
+ validateInput(inputValue.value)
840
841
// 不自动提交,让用户可以看到坐标并手动确认
842
}
0 commit comments