新增加注册功能

This commit is contained in:
不做码农
2022-04-14 18:30:10 +08:00
parent c5e6cfd771
commit 429f12ef01
15 changed files with 469 additions and 87 deletions

View File

@@ -9,9 +9,9 @@ export function login(username, password, code, uuid) {
uuid
}
return request({
url: '/login',
method: 'POST',
data: data,
url: '/login',
method: 'POST',
data: data,
})
}
@@ -26,8 +26,8 @@ export function getInfo() {
// 退出方法
export function logout() {
return request({
url: '/LogOut',
method: 'POST'
url: '/LogOut',
method: 'POST'
})
}
@@ -38,3 +38,15 @@ export function getCodeImg() {
method: 'get'
})
}
/**
* 注册
* @returns
*/
export function register(data) {
return request({
url: '/register',
method: 'post',
data: data
})
}