From 80958ace2e96fb6a8daed6a58e2dff2d51ff8616 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期三, 23 四月 2025 10:49:17 +0800
Subject: [PATCH] feat: 完成扫码业务员

---
 src/api/auth/index.ts |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/api/auth/index.ts b/src/api/auth/index.ts
index 7f8ae3a..3437285 100644
--- a/src/api/auth/index.ts
+++ b/src/api/auth/index.ts
@@ -9,14 +9,10 @@
    * @returns 杩斿洖 token
    */
   login(data: LoginFormData): Promise<LoginResult> {
-    console.log("data", data);
     return request<LoginResult>({
-      url: "/api/v1/auth/login",
+      url: "/login",
       method: "POST",
       data: data,
-      header: {
-        "Content-Type": "application/x-www-form-urlencoded",
-      },
     });
   },
 
@@ -53,6 +49,7 @@
 /** 鐧诲綍鍝嶅簲 */
 export interface LoginResult {
   /** 璁块棶token */
+  token: string;
   accessToken: string;
   /** token 绫诲瀷 */
   tokenType?: string;

--
Gitblit v1.9.3