Ver Fonte

update pc_chat

luke há 6 anos atrás
pai
commit
5503555c32
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      pc_chat/src/components/chat.vue

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

@@ -714,9 +714,11 @@
 
 				if (!isJPG) {
 					this.$message.error('上传只能是图片格式!');
+					return false;
 				}
 				if (!isLt2M) {
 					this.$message.error('上传图片大小不能超过 2MB!');
+					return false;
 				}
 				//对图片进行压缩
 				const imgSize = file.size / 1024 / 1024;