From fcbfd447e6e09ae79ce4674db6fb509d9214f17d Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 4 Nov 2021 10:21:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B4=A6=E5=8F=B7=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/customer/AddCustomer.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue index 2e72ea0..f6131fe 100644 --- a/src/views/customer/AddCustomer.vue +++ b/src/views/customer/AddCustomer.vue @@ -305,7 +305,12 @@ export default { { required: true, message: '请输入联系人姓名', trigger: 'blur' } ], account: [ - { required: true, message: '请输入账号', trigger: 'blur' } + { required: true, message: '请输入账号', trigger: 'blur' }, + { + pattern: /^[A-Za-z0-9]*$/, + message: "请输入正确的账号", + trigger: "blur" + } ], phone: [ // { required: true, message: '请输入手机号', trigger: 'blur' },