登录页面

登录接口功能
This commit is contained in:
xiongfeng
2022-06-28 20:07:35 +08:00
parent 9212332d4e
commit 6fabbcacd2
8 changed files with 136 additions and 24 deletions

View File

@@ -53,9 +53,16 @@
var cipher = this.encryptByPublicKey(json);
console.log("密文 " + cipher);
this.axios.get(api).then((response) => {
console.log(response.data)
var url = "http://localhost:8080/user/login";
axios.post(url, {
encryptedData: cipher,
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
},
encryptByPublicKey: function (val = '') {
if(val === ''){