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.
35 lines
561 B
35 lines
561 B
import request from '@/utils/request'
|
|
|
|
export function login(data) {
|
|
return request({
|
|
url: '/api/auth/login',
|
|
method: 'post',
|
|
data,
|
|
isLoading: false
|
|
})
|
|
}
|
|
|
|
export function getInfo(token) {
|
|
return request({
|
|
url: '/api/auth/me',
|
|
method: 'post',
|
|
params: { token },
|
|
isLoading: false
|
|
})
|
|
}
|
|
|
|
export function logout() {
|
|
return request({
|
|
url: '/api/auth/logout',
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
export function permissions () {
|
|
return request({
|
|
url: "/api/auth/permissions",
|
|
method: "post",
|
|
isLoading: false,
|
|
})
|
|
}
|