保存
This commit is contained in:
13
mail-vue/src/request/login.js
Normal file
13
mail-vue/src/request/login.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import http from '@/axios/index.js';
|
||||
|
||||
export function login(email, password) {
|
||||
return http.post('/login', {email: email, password: password})
|
||||
}
|
||||
|
||||
export function logout() {
|
||||
return http.delete('/logout')
|
||||
}
|
||||
|
||||
export function register(form) {
|
||||
return http.post('/register', form)
|
||||
}
|
||||
Reference in New Issue
Block a user