fix
lefengyang
2026-08-16 eb484309e35934445d9e8e224c927105434046fe
ledApp/pages/addTemplate/addTemplate.vue
@@ -764,7 +764,7 @@
               ctx = uni.createCanvasContext('myCanvas', this);
         
               // 设置字体样式
               ctx.setFontSize(this.canvasHeight * 0.9);
               ctx.setFontSize(this.canvasHeight);
               ctx.setFillStyle('#000')
               ctx.setTextAlign('center')
               ctx.setTextBaseline('middle')
@@ -773,7 +773,7 @@
               // 水平居中
               const x = this.canvasWidth / 2;
               // 垂直居中,稍微向上偏移一点
               const y = this.canvasHeight / 2;
               const y = this.canvasHeight / 2 + 10;
         
               // 绘制文字
               ctx.fillText(char, x, y);