panhui 7 vuotta sitten
vanhempi
commit
6a3648b8c9
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/main/vue/src/components/DrugArea.vue

+ 2 - 2
src/main/vue/src/components/DrugArea.vue

@@ -264,8 +264,8 @@ export default {
             ctx.translate(-x * width - width / 2, -y * height - height / 2);
             ctx.font = "14px 微软雅黑";
             ctx.fillStyle = 'red';
-            ctx.fillText(Number(this.mapPointInfo.angle), x * width + 20, y * height + 5, 100);
-              ctx.fillText(Number(this.mapPointInfo.angle), x * width + 20+0.5, y * height + 5+0.5, 100);
+            ctx.fillText(Number(this.mapPointInfo.angle), x * width + width, y * height + 5, 100);
+              ctx.fillText(Number(this.mapPointInfo.angle), x * width + width+0.5, y * height + 5+0.5, 100);
           }
         }
       }