From 77cd1202dac0b567736ac241af4b43f4d15ff19c Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Wed, 8 Apr 2026 13:34:28 +0800 Subject: [PATCH] 11 --- components/kk-printer/utils/bluetoolth.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/kk-printer/utils/bluetoolth.js b/components/kk-printer/utils/bluetoolth.js index f9e321e..c15ad4f 100644 --- a/components/kk-printer/utils/bluetoolth.js +++ b/components/kk-printer/utils/bluetoolth.js @@ -436,11 +436,9 @@ export function addCPCLText(x, y, fontName, fontSize, rotation, content) { var strCmd = ''; if (rotation == 1) { strCmd += 'T90 '; - } - if (rotation == 2) { + }else if (rotation == 2) { strCmd += 'T180 '; - } - if (rotation == 3) { + }else if (rotation == 3) { strCmd += 'T270 '; } else { strCmd += 'T ';