Refactor code structure for improved readability and maintainability

This commit is contained in:
hamed
2026-07-10 11:27:17 +03:30
parent ab2ab0dea2
commit 778876b1f7
12 changed files with 318 additions and 139 deletions
+2 -2
View File
@@ -2,12 +2,12 @@ import { removeTokenHead } from "@/helper";
import api from "./api";
export const request = {
sendCode: (mobile, captcha_token, domain) =>
sendCode: (mobile, altcha, domain) =>
api.post(
"api/v1/user/send-code",
{
mobile,
captcha_token,
altcha,
...(domain ? { domain } : {}),
},
removeTokenHead