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 ';