670发送紧急通知调整,与PC端一致的处理方案
This commit is contained in:
@ -1996,18 +1996,10 @@
|
||||
text: "请稍候..."
|
||||
});
|
||||
this.setBleFormData();
|
||||
let arr = [];
|
||||
if (this.formData.msgTxt.length > 8) {
|
||||
arr.push(this.formData.msgTxt.substring(0, 8));
|
||||
arr.push(this.formData.msgTxt.substring(8));
|
||||
} else {
|
||||
let index = Math.floor(this.formData.msgTxt.length / 2)
|
||||
arr.push(this.formData.msgTxt.substring(0, index));
|
||||
arr.push(this.formData.msgTxt.substring(index));
|
||||
}
|
||||
|
||||
|
||||
let data = {
|
||||
"sendMsg": arr.join('|'),
|
||||
"sendMsg": this.formData.msgTxt,
|
||||
"deviceIds": [
|
||||
this.device.id
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user