Commit 46f69af6 authored by 陈帅's avatar 陈帅

fix login url

parent 8002969f
...@@ -3,7 +3,7 @@ function getFakeCaptcha(req: any, res: { json: (arg0: string) => void }) { ...@@ -3,7 +3,7 @@ function getFakeCaptcha(req: any, res: { json: (arg0: string) => void }) {
} }
export default { export default {
'POST /api/account': ( 'POST /api/login/account': (
req: { body: { password: any; userName: any; type: any } }, req: { body: { password: any; userName: any; type: any } },
res: { res: {
send: (data: any) => void; send: (data: any) => void;
...@@ -32,5 +32,5 @@ export default { ...@@ -32,5 +32,5 @@ export default {
currentAuthority: 'guest', currentAuthority: 'guest',
}); });
}, },
'GET /api/captcha': getFakeCaptcha, 'GET /api/login/captcha': getFakeCaptcha,
}; };
...@@ -2,12 +2,12 @@ import request from 'umi-request'; ...@@ -2,12 +2,12 @@ import request from 'umi-request';
import { FromDataType } from './index'; import { FromDataType } from './index';
export async function fakeAccountLogin(params: FromDataType) { export async function fakeAccountLogin(params: FromDataType) {
return request('/api/account', { return request('/api/login/account', {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
} }
export async function getFakeCaptcha(mobile: string) { export async function getFakeCaptcha(mobile: string) {
return request(`/api/captcha?mobile=${mobile}`); return request(`/api/login/captcha?mobile=${mobile}`);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment