From e7f148745ddebbfb5b89f7596713b083b86041b6 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Tue, 16 Apr 2024 16:45:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/register.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/register.vue b/src/views/register.vue index 6f1b940..840fa2d 100644 --- a/src/views/register.vue +++ b/src/views/register.vue @@ -86,12 +86,14 @@ export default { password: "", confirmPassword: "", code: "", - uuid: "" + uuid: "", + roleKey:"" }, registerRules: { username: [ { required: true, trigger: "blur", message: "请输入您的账号(保持和申报学校的名称一致)" }, - { min: 2, max: 20, message: '用户账号长度必须介于 2 和 20 之间', trigger: 'blur' } + { min: 2, max: 20, message: '用户账号长度必须介于 2 和 20 之间', trigger: 'blur' }, + { pattern: /^[\u4e00-\u9fa5]+$/, message: "只能输入中文", trigger: "blur" } ], password: [ { required: true, trigger: "blur", message: "请输入您的密码" },