From 40aebfcd3f160a59b38c1b1542366e0ddd84bce8 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 22 八月 2025 15:10:28 +0800 Subject: [PATCH] feat: 接口对接 --- src/store/modules/user.ts | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index a0f709d..d2204f3 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,7 +62,8 @@ let res = await authServices.passwordLogin( { ...params, - password: md5Encrypt(params.password), + password: params.password, + // password: md5Encrypt(params.password), type: AppLocalConfig.userType, clientType: AppLocalConfig.clientType, }, -- Gitblit v1.9.1