From 1d8a2ae469d44476c8af208f00359508bec65c82 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 12 八月 2025 10:38:37 +0800
Subject: [PATCH] feat: 接口

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

diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index d472450..a82987d 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -19,7 +19,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);
     },
@@ -68,6 +68,7 @@
         },
         {
           showLoading: false,
+          skipErrorHandler: true,
         }
       );
       if (res) {

--
Gitblit v1.9.1