From d71422ecb4e6a0c855e94e0416e4fc52387dec18 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期五, 08 八月 2025 14:52:46 +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