From 83af3dd309889489f541fc8e21894c9f79e5788c Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期五, 22 八月 2025 16:09:58 +0800 Subject: [PATCH] 用户管理 --- src/api/login/index.ts | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/api/login/index.ts b/src/api/login/index.ts index b853982..aeeafbc 100644 --- a/src/api/login/index.ts +++ b/src/api/login/index.ts @@ -7,11 +7,10 @@ import { http } from "@/utils/http"; import { baseUrlApi } from "../util"; -type Result = { - success: boolean; - data: Array<any>; -}; +import type { Result } from "../types"; export const login = (data?: object) => { - return http.request("post", baseUrlApi("/api/auth/loginPhone"), { data }); + return http.request<Result>("post", baseUrlApi("/api/auth/loginPhone"), { + data + }); }; -- Gitblit v1.9.1