umi request post请求参数

时间:2025-01-15 07:07:02
import umiRequest from 'umi-request';
export async function fakeAccountLogin(params) {
    (params);
    // return request('/api/login/account', {
    // return request('/api/?m=Index&a=userLogin',{
    //     method: 'POST',
    //     body: params,
    // });
    return umiRequest('/api/?m=Index&a=userLogin',{
        method: 'post',
        data: params,
        requestType: 'form',
    })
}