From 309b5a2eb4a99f20b2dcceca41c7ed1275bcc6ae Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期二, 22 七月 2025 17:26:08 +0800
Subject: [PATCH] '注册导航上传loading'

---
 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