You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
230 B

4 years ago
import api from '@/utils/api'
export function login(data) {
return api({
url: '/user/login',
method: 'post',
data
})
}
export function logout() {
return api({
url: '/user/logout',
method: 'post'
})
}