Skip to content

Commit 9867e6c

Browse files
committed
fix: type check fail
1 parent 6668406 commit 9867e6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/web-antd/src/store/auth.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type { Recordable } from '@vben/types';
2+
13
import type { CaptchaResult, LoginParams, MyUserInfo } from '#/api';
24

35
import { ref } from 'vue';
@@ -39,14 +41,14 @@ export const useAuthStore = defineStore('auth', () => {
3941
* @param params 登录表单数据
4042
*/
4143
async function authLogin(
42-
params: LoginParams,
44+
params: Recordable<any>,
4345
onSuccess?: () => Promise<void> | void,
4446
) {
4547
// 异步处理用户登录操作并获取 accessToken
4648
let userInfo: MyUserInfo | null = null;
4749
try {
4850
loginLoading.value = true;
49-
const { access_token } = await loginApi(params);
51+
const { access_token } = await loginApi(params as LoginParams);
5052

5153
// 如果成功获取到 accessToken
5254
if (access_token) {

0 commit comments

Comments
 (0)