From 139aa3314684d5f009f1abb2c5324cf31be7045a Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 15 八月 2025 10:34:33 +0800 Subject: [PATCH] feat: 接口对接 --- src/store/modules/user.ts | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 85c8aae..02bc2ca 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() { @@ -42,16 +42,17 @@ return state.userInfo; }, - // userId(state) { - // return state.accountInfo.sub; - // }, + userId(state) { + //TODO + return ''; + }, }, actions: { setToken(token: string) { this.token = token; setToken(token); }, - setUserInfo(userInfo: API.PasswordLoginCommandCallback) { + setUserInfo(userInfo: API.LoginCommandCallback) { this.userInfo = userInfo; setUserInfo(userInfo); }, @@ -62,8 +63,8 @@ { ...params, password: md5Encrypt(params.password), - type: EnumUserType.Operation, - clientType: EnumClientType.PcWeb, + type: AppLocalConfig.userType, + clientType: AppLocalConfig.clientType, }, { showLoading: false, -- Gitblit v1.9.1