添加请求接口

This commit is contained in:
2026-08-25 22:19:22 +08:00
parent ef50160ef5
commit 68ea2af952
3 changed files with 72 additions and 3 deletions
+18
View File
@@ -0,0 +1,18 @@
import request from "@/utils/request";
// 登录
export function login(data) {
return request({
url: '/login',
method: 'post',
data
})
}
// 获取用户信息
export function getUserInfo() {
return request({
url: '/user/info',
method: 'get'
})
}