shish 5 лет назад
Родитель
Сommit
27bca15c33
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      ghsApp/src/mixins/BLE.js

+ 4 - 1
ghsApp/src/mixins/BLE.js

@@ -266,12 +266,15 @@ export default {
 			//正文
 			arrPrint.push(util.sendDirective([0x1B, 0x0E]));
 			arrPrint.push(util.hexStringToBuff(BleVal.sendNum+ "\n"));
+			arrPrint.push(util.sendDirective([0x1B, 0x14]));
+			arrPrint.push(util.hexStringToBuff("--------------------------------\n"));
+			arrPrint.push(util.sendDirective([0x1B, 0x0E]));
 			arrPrint.push(util.hexStringToBuff(BleVal.custom.fullAddress+ "\n"));
 			arrPrint.push(util.hexStringToBuff(BleVal.custom.customName+' '+BleVal.custom.customMobile+ "\n"));
 
 			if(BleVal.remark.length > 0){
-				arrPrint.push(util.hexStringToBuff("--------------------------------\n"));
 				arrPrint.push(util.sendDirective([0x1B, 0x14]));
+				arrPrint.push(util.hexStringToBuff("--------------------------------\n"));
 				arrPrint.push(util.hexStringToBuff("备注:\n"));
 				arrPrint.push(util.sendDirective([0x1B, 0x0E]));
 				arrPrint.push(util.hexStringToBuff(BleVal.remark+"\n"));