diff --git a/admin-web/mock/user.js b/admin-web/mock/user.js index 3db39da5f..88f85dce1 100644 --- a/admin-web/mock/user.js +++ b/admin-web/mock/user.js @@ -74,7 +74,7 @@ export default { address: 'Sidney No. 1 Lake Park', }, ], - 'POST /admin-api/admin/passport/login': (req, res) => { + 'POST /admin-api/admins/passport/login': (req, res) => { const { password, username } = req.body; if (password === 'admin' && username === 'admin') { res.send({ diff --git a/admin-web/src/services/api.js b/admin-web/src/services/api.js index 9a822c9ad..379e94c9f 100644 --- a/admin-web/src/services/api.js +++ b/admin-web/src/services/api.js @@ -104,14 +104,14 @@ export async function updateFakeList(params) { } export async function fakeAccountLogin(params) { - return request(`/admin-api/admin/passport/login?${stringify(params)}`, { + return request(`/admin-api/admins/passport/login?${stringify(params)}`, { method: 'POST', body: params, }); } export async function fakeRegister(params) { - return request(`/admin-api/admin/passport/login?${stringify(params)}`, { + return request(`/admin-api/admins/passport/login?${stringify(params)}`, { method: 'POST', body: params, });