yuansh 4 days ago
parent
commit
f060f918d1
1 changed files with 7 additions and 6 deletions
  1. 7 6
      src/views/system/user/user.data.ts

+ 7 - 6
src/views/system/user/user.data.ts

@@ -155,11 +155,12 @@ export const formSchema: FormSchema[] = [
       {
         required: true,
         message: '请输入登录密码',
-      },
+      }
+      /* ,
       {
         pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,
         message: '密码由8位数字、大小写字母和特殊符号组成!',
-      },
+      }, */
     ],
   },
   {
@@ -357,10 +358,10 @@ export const formPasswordSchema: FormSchema[] = [
         required: true,
         message: '请输入登录密码',
       },
-      {
-        pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,
-        message: '密码由8位数字、大小写字母和特殊符号组成!',
-      },
+      // {
+      //   pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,
+      //   message: '密码由8位数字、大小写字母和特殊符号组成!',
+      // },
     ],
   },
   {