JIALDemo/target/classes/backend/api/login.js

15 lines
205 B
JavaScript
Raw Normal View History

2023-11-28 08:43:15 +08:00
function loginApi(data) {
return $axios({
2023-12-06 23:19:44 +08:00
'url': '/user/login',
2023-11-28 08:43:15 +08:00
'method': 'post',
data
})
}
function logoutApi(){
return $axios({
2023-12-06 23:19:44 +08:00
'url': '/user/logout',
2023-11-28 08:43:15 +08:00
'method': 'post',
})
}