mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 08:57:19 +08:00
18 lines
346 B
TypeScript
18 lines
346 B
TypeScript
import { http } from "../utils/http";
|
|
|
|
interface userType extends Promise<any> {
|
|
svg?: string;
|
|
code?: number;
|
|
info?: object;
|
|
}
|
|
|
|
// 获取验证码
|
|
export const getVerify = (): userType => {
|
|
return http.request("get", "/captcha");
|
|
};
|
|
|
|
// 登录
|
|
export const getLogin = (data: object) => {
|
|
return http.request("post", "/login", data);
|
|
};
|