Browse Source

修改邮件规则

tangning 2 years ago
parent
commit
690804343b
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/store/modules/locale.ts
  2. 1 1
      src/views/dealer/components/addModal.vue

+ 1 - 0
src/store/modules/locale.ts

@@ -44,6 +44,7 @@ export const useLocaleStore = defineStore({
       this.setLocaleInfo({
         ...localeSetting,
         ...this.localInfo,
+        locale:'zh_CN'
       });
     },
   },

+ 1 - 1
src/views/dealer/components/addModal.vue

@@ -79,7 +79,7 @@
                 // @ts-ignore
                 validator: async (rule, value) => {
                   console.log('value',value)
-                  const regEmail = /^\w+@\w+\.\w+$/i
+                  const regEmail = /^(.+)@(.+)$/
                   const regPos = /^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/; // 非中文
                   if (!value) {
                     return Promise.reject('请输入四维看看账号');