feat: 优化代码

This commit is contained in:
caijun
2026-01-27 15:42:20 +08:00
parent 22d656889a
commit ed2be2a938
3 changed files with 17 additions and 16 deletions

View File

@@ -215,7 +215,7 @@
if(options.code){
this.exchangeToken(options)
}else if(options.socialLogin){
this.getLogin()
this.getLogin('creat')
}
else{
this.certifyLogin()
@@ -523,7 +523,7 @@
this.loading = true
const password = md5Libs.md5(this.formData.password);
const encryptPassword = this.jnpf.aesEncryption.encrypt(password);
this.getLogin()
this.getLogin('click')
}
});
return
@@ -531,7 +531,8 @@
this.certifyLogin()
},
// 普通登录
getLogin(){
getLogin(type){
if(type !== 'click') return
const userStore = useUserStore()
let query = {
tenantName: this.formData.tenantName,