From 09812c56f0a37962cdb8fed5a8c4026f2cd30b4d Mon Sep 17 00:00:00 2001 From: wang_yp <357754663@qq.com> Date: Tue, 25 Feb 2025 16:00:03 +0800 Subject: [PATCH] singin --- src/pages/signin/index.tsx | 8 ++++---- src/store/singin.ts | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/signin/index.tsx b/src/pages/signin/index.tsx index be01793..e4b2bbb 100644 --- a/src/pages/signin/index.tsx +++ b/src/pages/signin/index.tsx @@ -10,8 +10,8 @@ import SimpleForm from "@/components/form/simple_form"; const Signin = (props: Store) => { const { signinStore } = props; const serchFormRef = React.useRef(null); - useEffect(() => { - signinStore.getSignList(); + useEffect(() => { + signinStore.getlist(); }, [signinStore]); const onSerchFinish = (values: any) => { @@ -22,7 +22,7 @@ const Signin = (props: Store) => { page: 1, page_size: 10, }; - signinStore.getSignList(query); + signinStore.getlist(query); }; const onFinishFailed = () => {}; return ( @@ -72,7 +72,7 @@ const Signin = (props: Store) => { diff --git a/src/store/singin.ts b/src/store/singin.ts index fe2c764..9e4a2cd 100644 --- a/src/store/singin.ts +++ b/src/store/singin.ts @@ -5,7 +5,7 @@ import { TagDataType } from "@/model/userModel"; import baseHttp from '@/service/base'; class SigninConfig { - static LISTs: string = "/v1/user/signin" + static LIST: string = "/v1/user/signin" static Export: string = "/v1/user/signin/export" } @@ -17,9 +17,9 @@ class SigninStore extends BaseStore { signList: observable, getSignList: action, }) - } + } async getSignList(query) { - let list = await baseHttp.get(SigninConfig.LISTs, { + let list = await baseHttp.get(SigninConfig.LIST, { size: query?.Size ?? 20, offset: query?.Offset ?? 1, user_name: query?.user_name,