feat: 修改点击登录逻辑

This commit is contained in:
caijun
2026-01-28 10:25:53 +08:00
parent ae5e5dc08a
commit 16cf3fc750

View File

@@ -517,8 +517,7 @@
this.imgUrl = `/api/oauth/ImageCode/${this.codeLength || 4}/${timestamp}` this.imgUrl = `/api/oauth/ImageCode/${this.codeLength || 4}/${timestamp}`
}, },
login() { login() {
if(this.ssoOptions.socialLogin){ this.$refs.dataForm.validate(valid => {
this.$refs.dataForm.validate(valid => {
if (valid) { if (valid) {
this.loading = true this.loading = true
const password = md5Libs.md5(this.formData.password); const password = md5Libs.md5(this.formData.password);
@@ -526,9 +525,7 @@
this.getLogin('click') this.getLogin('click')
} }
}); });
return // this.certifyLogin()
}
this.certifyLogin()
}, },
// 普通登录 // 普通登录
getLogin(type){ getLogin(type){