浏览代码

修改国际服的账号密码

bill 1 年之前
父节点
当前提交
1128ad10d8
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/system/shared/rules.ts

+ 2 - 1
src/views/system/shared/rules.ts

@@ -1,7 +1,8 @@
 import { ui18n } from '@/lang'
 import type { Rule } from 'ant-design-vue/es/form'
 
-export const phonePattern = /^1[3|4|5|7|8][0-9]\d{8}$/
+// export const phonePattern = /^1[3|4|5|7|8][0-9]\d{8}$/
+export const phonePattern = /^[^\u4e00-\u9fa5]{5,}$/
 export const passwordPattern = /^[^\u4e00-\u9fa5]{1,16}$/
 export const namePattern = /^[\d|\w]{1,16}$/