【add】登录采用RSA加密的模式进行处理用户名和密码

This commit is contained in:
mzc5649
2021-04-16 13:20:42 +08:00
parent c587cc32d5
commit 00faa74f69
4 changed files with 43 additions and 4 deletions
+15
View File
@@ -71,4 +71,19 @@ export function thirdLogin(token,thirdType) {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
/**
* 获取RSA公钥
* @returns {*}
*/
export function getRSAPublicKey() {
return axios({
url: `/sys/getRSAPublicKey`,
method: 'get',
timeout: 5000,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}