Skip to content

Commit

Permalink
types: update
Browse files Browse the repository at this point in the history
  • Loading branch information
bigsnowballhehe authored Jun 6, 2023
1 parent da6c262 commit 04611d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/login/utils/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const REGEXP_PWD =
/^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[()])+$)(?!^.*[\u4E00-\u9FA5].*$)([^(0-9a-zA-Z)]|[()]|[a-z]|[A-Z]|[0-9]){8,18}$/;

/** 登录校验 */
const loginRules = reactive(<FormRules>{
const loginRules = reactive<FormRules>({
password: [
{
validator: (rule, value, callback) => {
Expand Down Expand Up @@ -44,7 +44,7 @@ const loginRules = reactive(<FormRules>{
});

/** 手机登录校验 */
const phoneRules = reactive(<FormRules>{
const phoneRules = reactive<FormRules>({
phone: [
{
validator: (rule, value, callback) => {
Expand Down Expand Up @@ -76,7 +76,7 @@ const phoneRules = reactive(<FormRules>{
});

/** 忘记密码校验 */
const updateRules = reactive(<FormRules>{
const updateRules = reactive<FormRules>({
phone: [
{
validator: (rule, value, callback) => {
Expand Down

0 comments on commit 04611d8

Please sign in to comment.