From 41072e5816e6cebb5ae7a0c417ba185dc442d00a Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 06 十一月 2025 18:24:45 +0800
Subject: [PATCH] feat: 接口

---
 src/store/modules/user.ts |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index a0f709d..7ca50bd 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -18,7 +18,7 @@
 
 export interface UserState {
   token: string;
-  userInfo: API.PasswordLoginCommandCallback;
+  userInfo: API.LoginCommandCallback;
 }
 
 function getDefaultState() {
@@ -52,7 +52,7 @@
       this.token = token;
       setToken(token);
     },
-    setUserInfo(userInfo: API.PasswordLoginCommandCallback) {
+    setUserInfo(userInfo: API.LoginCommandCallback) {
       this.userInfo = userInfo;
       setUserInfo(userInfo);
     },
@@ -62,9 +62,11 @@
       let res = await authServices.passwordLogin(
         {
           ...params,
-          password: md5Encrypt(params.password),
+          password: params.password,
+          // password: md5Encrypt(params.password),
           type: AppLocalConfig.userType,
           clientType: AppLocalConfig.clientType,
+          // enterpriseType: AppLocalConfig.enterpriseType,
         },
         {
           showLoading: false,

--
Gitblit v1.9.1