mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-24 17:41:03 +01:00
28 lines
427 B
JavaScript
28 lines
427 B
JavaScript
import request from '@/utils/request'
|
|
|
|
export function login (username, password) {
|
|
return request({
|
|
url: '/user/login',
|
|
method: 'post',
|
|
data: {
|
|
username,
|
|
password
|
|
}
|
|
})
|
|
}
|
|
|
|
export function getInfo (token) {
|
|
return request({
|
|
url: '/user/info',
|
|
method: 'get',
|
|
params: { token }
|
|
})
|
|
}
|
|
|
|
export function logout () {
|
|
return request({
|
|
url: '/user/logout',
|
|
method: 'post'
|
|
})
|
|
}
|