fix:更新

This commit is contained in:
zsqtony 2025-06-27 17:27:47 +08:00
parent 13d5ca8d11
commit d9630d65e8
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ export const stateActions = {
state.storage.access_token = undefined;
},
me: async () => {
const res = await Apis.Auth.Me();
const res = await Apis.Common.Auth.Me();
if (res.success) {
stateActions.setLogin(res);
return {

View File

@ -18,7 +18,7 @@ export function MyLoginPage1() {
const [getCaptcha, setCaptcha] = useState<any>({});
const methods = {
getCaptcha: () => {
Apis.Auth.Captcha().then(async (res) => {
Apis.Common.Auth.Captcha().then(async (res) => {
setCaptcha(res?.data);
console.log(res, 'res');
});
@ -35,12 +35,12 @@ export function MyLoginPage1() {
height: '100vh',
}}
>
<LoginFormPage<ApiTypes.Auth.Login>
<LoginFormPage<ApiTypes.Common.Auth.Login>
title="欢迎使用后台管理系统"
backgroundVideoUrl="https://gw.alipayobjects.com/v/huamei_gcee1x/afts/video/jXRBRK_VAwoAAAAAAAAAAAAAK4eUAQBr"
subTitle="Admin management system"
onFinish={async (values: any) => {
Apis.Auth.Login({
Apis.Common.Auth.Login({
...values,
...{ captcha_key: getCaptcha?.key },
})