luke 6 anni fa
parent
commit
a77659ad84
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      pc_chat/src/components/leaveMsg.vue

+ 2 - 2
pc_chat/src/components/leaveMsg.vue

@@ -171,7 +171,7 @@
 				if (type == 1) {
 					if (!/^1[34578]\d{9}$/.test(this.phone)) {
 						this.error = true;
-						this.$message.success('手机格式不正确!')
+						this.$message.error('手机格式不正确!')
 						this.phone = '';
 					} else {
 						this.error = false;
@@ -180,7 +180,7 @@
 				else if (type == 10) {
 					if (!/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(this.eMail)) {
 						this.emailError = true;
-						this.$message.success('邮箱格式不正确!')
+						this.$message.error('邮箱格式不正确!')
 						this.eMail = '';
 					} else {
 						this.emailError = false;