|
@@ -9,7 +9,7 @@
|
|
|
density="compact"
|
|
|
color="primary"
|
|
|
prepend-inner-icon="mdi-email"
|
|
|
- :rules="[v=> !!v || '请输入企业邮箱', v=> checkEmail(v) || '邮箱格式不正确']"
|
|
|
+ :rules="[v=> !!v || '请输入企业邮箱', v=> checkCompanyEmail(v) || '邮箱格式不正确']"
|
|
|
></v-text-field>
|
|
|
<v-text-field
|
|
|
v-model.trim="query.code"
|
|
@@ -73,7 +73,7 @@ defineOptions({ name: 'editPasswordEnt'})
|
|
|
import { ref, reactive, computed } from 'vue'
|
|
|
import { entResetPassword, getEmailCode } from '@/api/common/index'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
-import { checkEmail } from '@/utils/validate'
|
|
|
+import { checkCompanyEmail } from '@/utils/validate'
|
|
|
import Verify from '@/components/Verifition'
|
|
|
import { setCodeTime } from '@/utils/code'
|
|
|
import { useRouter } from 'vue-router'; const router = useRouter()
|
|
@@ -138,7 +138,7 @@ const showCode = ref(true)
|
|
|
const count = ref(0)
|
|
|
const timer = ref(null)
|
|
|
const handleCode = async () => {
|
|
|
- if (!query.email || !checkEmail(query.email)) {
|
|
|
+ if (!query.email || !checkCompanyEmail(query.email)) {
|
|
|
Snackbar.warning('请输入企业邮箱')
|
|
|
return
|
|
|
}
|