|
@@ -10,6 +10,7 @@
|
|
|
clearable
|
|
|
@keyup.enter="onSignIn(ruleFormRef)"
|
|
|
autocomplete="off"
|
|
|
+ @blur="blurUserName"
|
|
|
>
|
|
|
<template #prefix>
|
|
|
<SvgIcon name="ele-User" class="el-input__icon" />
|
|
@@ -117,6 +118,12 @@ const countText = ref('s后重新获取'); // 倒计时文本
|
|
|
const click = ref('获取验证码'); // 点击
|
|
|
const isDisabled = ref(false); // 是否禁用
|
|
|
const msgCodeRequired = ref(false); // 短信验证码是否必填
|
|
|
+// 验证账号是否是必须填写短信验证码
|
|
|
+const blurUserName = () => {
|
|
|
+ if(themeConfig.value.isLoginMessageCode){
|
|
|
+ console.log('校验')
|
|
|
+ }
|
|
|
+};
|
|
|
const getIdentifyCodeBtn = () => {
|
|
|
if (!state.ruleForm.username) {
|
|
|
ruleFormRef.value?.validateField('username');
|