Files
my-bigScreen/screen-vue/src/api/user.js
2026-02-26 15:34:58 +08:00

32 lines
448 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
/**
* 登录接口
*/
export function login(data) {
return request({
url: 'userLogin',
method: 'post',
data
})
}
/**
* 退出登录
*/
export function logout() {
return request({
url: '/userLogout',
method: 'post'
})
}
/**
* 获取当前用户信息需要token验证
*/
export function getUserInfo() {
return request({
url: '/userInfo',
method: 'get'
})
}