Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user