@ -131,8 +131,12 @@ const dots = ref([
// y: 200,
// }
])
const setDot = (dot) => {
dots.value = dot
const setDot = (dot, bol) => {
if (bol) {
dots.value = []
} else {
dots.value = [...dots.value, ...dot]
}
const lineStyle = ref(null)
@ -790,6 +790,7 @@ const ad = () => {
const StartWorkBtn = () => {
StartWork()
rulerRef.value.setDot([], true)
const StopWorkBtn = () => {
StopWork()