From 251c70f836e4f922904b9131c52f15d5ac58c9fd Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 18 二月 2025 14:58:19 +0800 Subject: [PATCH] feat: init --- src/store/modules/user.ts | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 43597ac..3aecc22 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -4,7 +4,6 @@ import { resetRouter, router } from '@/router'; import { useTagsViewStoreHook } from './tagsView'; import * as accountServices from '@/services/api/Account'; -import * as userServices from '@/services/api/User'; import { usePermissionStoreHook } from './permission'; import { getAccountInfoFromAccessToken, AccountInfo } from '@bole-core/core'; import { useClearSubModule } from '@/hooks'; @@ -64,14 +63,15 @@ // 鐢ㄦ埛鐧诲叆 loginByUsername(data: API.AccessRequestDto) { return new Promise<void>((resolve, reject) => { - userServices - .passwordLogin( - { - loginName: data.userName, - password: data.userPassword, - }, - { showLoading: false } - ) + accountServices + .getTokenForWeb(data, { showLoading: false }) + // .passwordLogin( + // { + // loginName: data.userName, + // password: data.userPassword, + // }, + // { showLoading: false } + // ) .then((res) => { if (res) { console.log('res: ', res); -- Gitblit v1.9.1