mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
292 B
TypeScript
16 lines
292 B
TypeScript
4 years ago
|
import { request } from '../api/request';
|
||
|
|
||
|
/**
|
||
|
* 邮箱登录
|
||
|
* @param email 邮箱
|
||
|
* @param password 密码
|
||
|
*/
|
||
|
export async function loginWithEmail(email: string, password: string) {
|
||
|
const data = await request.post('/api/user/login', {
|
||
|
email,
|
||
|
password,
|
||
|
});
|
||
|
|
||
|
return data;
|
||
|
}
|