This commit is contained in:
hailin 2025-06-14 13:46:02 +08:00
parent 9052ee0da3
commit 35e99c7c9f
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import toast from "react-hot-toast";
import md5 from "md5";
import service from '@/lib/http/service';
import getService from '@/lib/http/service';
import { useTranslation } from "react-i18next";
export function EmailSignIn(props: {
@ -51,6 +51,7 @@ export function EmailSignIn(props: {
console.log(email, password, (md5(password)))
setIsLoading(true);
const service = await getService();
await service.post('/api/v1/customer/login', {
user_name: email,
password: md5(password),