From 3d589bf8a46bf28976aa675391e4a41ebce8f185 Mon Sep 17 00:00:00 2001 From: ClasWen Date: Sat, 30 Mar 2024 14:30:37 +0800 Subject: [PATCH] update phone regex at login register --- src/views/Login/LoginRegister.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Login/LoginRegister.vue b/src/views/Login/LoginRegister.vue index 0d6a109..84ac30c 100644 --- a/src/views/Login/LoginRegister.vue +++ b/src/views/Login/LoginRegister.vue @@ -103,7 +103,7 @@ onMounted(() => { v-model:content="account.phone" :rules="[ { - rule: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/, + rule: /^1[3456789]\d{9}$/, warning: '格式错误', }, ]"