Explorar el Código

update pc_chat

luke hace 6 años
padre
commit
568145e90b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      pc_chat/src/components/chat.vue

+ 5 - 0
pc_chat/src/components/chat.vue

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