提交 c1e017b4 authored 作者: Yroc's avatar Yroc

'学生登录'

上级 f5e59b9a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: AnthonyD * @Author: AnthonyD
* @Date: 2023-02-22 11:31:31 * @Date: 2023-02-22 11:31:31
* @Last Modified by: AnthonyD * @Last Modified by: AnthonyD
* @Last Modified time: 2023-03-20 18:33:10 * @Last Modified time: 2023-03-20 18:43:23
*/ */
</script> </script>
<template> <template>
...@@ -347,6 +347,8 @@ export default { ...@@ -347,6 +347,8 @@ export default {
// } // }
sendMessage() { sendMessage() {
this.is_loading = true; this.is_loading = true;
this.$refs.ruleForm.validateField('email', (errMsg) => {
getCode({ email: this.loginForm.email }) getCode({ email: this.loginForm.email })
.then((res) => { .then((res) => {
this.loginForm.eamil_key = res.key || null; this.loginForm.eamil_key = res.key || null;
...@@ -356,13 +358,12 @@ export default { ...@@ -356,13 +358,12 @@ export default {
.catch(() => { .catch(() => {
this.is_loading = false; this.is_loading = false;
}); });
this.$refs.ruleForm.validate((valid) => { // this.$refs.ruleForm.validate((valid) => {
if (valid) { // if (valid) {
console.log('效验通过'); // console.log('效验通过');
} // }
});
// this.$refs.ruleForm.validateField('email', (errMsg) => {
// }); // });
});
}, },
goLogin() { goLogin() {
this.$router.push('/login_info'); this.$router.push('/login_info');
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论