mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-04-22 11:47:33 +08:00
登录页面
登录接口功能
This commit is contained in:
@@ -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 === ''){
|
||||
|
||||
Reference in New Issue
Block a user