|
|
@@ -70,7 +70,7 @@
|
|
|
</el-form>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
- <el-tab-pane label="短信登录" name="sms">
|
|
|
+ <el-tab-pane label="验证码登录" name="sms">
|
|
|
<el-form ref="smsFormRef" :model="smsForm" :rules="smsRules" label-width="0">
|
|
|
<el-form-item prop="account" class="login-form-item">
|
|
|
<el-input
|
|
|
@@ -171,7 +171,7 @@ const isPasswordEmail = computed(() => {
|
|
|
const emit = defineEmits(['login-success'])
|
|
|
|
|
|
// 对话框可见性
|
|
|
-const dialogVisible = ref(true)
|
|
|
+const dialogVisible = ref(false)
|
|
|
// 验证码图片
|
|
|
const captchaImg = ref('')
|
|
|
|
|
|
@@ -380,7 +380,6 @@ const handleSmsLogin = () => {
|
|
|
// emit('login-success', { type: 'sms', userInfo: smsForm })
|
|
|
dialogVisible.value = false;
|
|
|
// 登录成功后,将token存储到localStorage
|
|
|
- debugger
|
|
|
setToken(res.token);
|
|
|
} else {
|
|
|
ElMessage.error(res.msg || '登录失败')
|