|
@@ -1589,6 +1589,11 @@
|
|
|
sendMessage() {
|
|
sendMessage() {
|
|
|
let str = this.information;
|
|
let str = this.information;
|
|
|
let formatStr = str.replace(/\n/g, '<br/>');
|
|
let formatStr = str.replace(/\n/g, '<br/>');
|
|
|
|
|
+ if (str.length > 450) {
|
|
|
|
|
+ this.$message.error('输入字符不能大于450个字符');
|
|
|
|
|
+ this.information = '';
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
// 给机器人发送文本消息
|
|
// 给机器人发送文本消息
|
|
|
if (this.machineAndAtl == 10) {
|
|
if (this.machineAndAtl == 10) {
|
|
|
//给机器人发送文本消息-本地储存
|
|
//给机器人发送文本消息-本地储存
|