mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
feat: update
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import { http } from "../utils/http";
|
||||
|
||||
interface userType extends Promise<any> {
|
||||
svg?: string;
|
||||
code?: number;
|
||||
info?: object;
|
||||
}
|
||||
|
||||
// 获取验证码
|
||||
export const getVerify = () => {
|
||||
export const getVerify = (): userType => {
|
||||
return http.request("get", "/captcha");
|
||||
};
|
||||
|
||||
@@ -11,6 +17,6 @@ export const getLogin = (data: object) => {
|
||||
};
|
||||
|
||||
// 注册
|
||||
export const getRegist = (data: object) => {
|
||||
export const getRegist = (data: object): userType => {
|
||||
return http.request("post", "/register", data);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user