Browse Source

fix(env): 更新测试环境服务基础URL配置
refactor(form): 移除表单密码字段的正则校验规则

从表单规则中移除了对密码字段的正则校验,不再使用REG_PWD常量进行验证。

zhangtao 1 week ago
parent
commit
c675cc9e8f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/hooks/common/form.ts

+ 1 - 2
src/hooks/common/form.ts

@@ -1,7 +1,7 @@
 import { ref, toValue } from 'vue';
 import type { ComputedRef, Ref } from 'vue';
 import type { FormInst } from 'naive-ui';
-import { REG_CODE_SIX, REG_EMAIL, REG_PHONE, REG_PWD } from '@/constants/reg';
+import { REG_CODE_SIX, REG_EMAIL, REG_PHONE } from '@/constants/reg';
 import { $t } from '@/locales';
 
 export function useFormRules() {
@@ -16,7 +16,6 @@ export function useFormRules() {
       trigger: 'change'
     },
     pwd: {
-      pattern: REG_PWD,
       message: $t('form.pwd.invalid'),
       trigger: 'change'
     },