Browse Source

修改国际服的账号密码

bill 1 year ago
parent
commit
1128ad10d8
1 changed files with 2 additions and 1 deletions
  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 { ui18n } from '@/lang'
 import type { Rule } from 'ant-design-vue/es/form'
 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 passwordPattern = /^[^\u4e00-\u9fa5]{1,16}$/
 export const namePattern = /^[\d|\w]{1,16}$/
 export const namePattern = /^[\d|\w]{1,16}$/