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.
34 lines
568 B
34 lines
568 B
import request from '@/utils/request'
|
|
|
|
// 登录方法
|
|
export function login(username, password, captchaVerification) {
|
|
const data = {
|
|
username,
|
|
password,
|
|
captchaVerification
|
|
}
|
|
return request({
|
|
url: '/system/auth/login',
|
|
headers: {
|
|
isToken: false
|
|
},
|
|
'method': 'POST',
|
|
'data': data
|
|
})
|
|
}
|
|
|
|
// 获取用户详细信息
|
|
export function getInfo() {
|
|
return request({
|
|
url: '/system/auth/get-permission-info',
|
|
'method': 'GET'
|
|
})
|
|
}
|
|
|
|
// 退出方法
|
|
export function logout() {
|
|
return request({
|
|
url: '/system/auth/logout',
|
|
'method': 'POST'
|
|
})
|
|
}
|
|
|