From eba89f3113a582a07aeeeb9bc8d8fc2fdb905eea Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Sun, 10 Mar 2019 15:22:04 +0800 Subject: [PATCH] =?UTF-8?q?-=20admin=20api=20=E6=94=B9=E4=B8=BA=20admins?= =?UTF-8?q?=20=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-web/mock/user.js | 2 +- admin-web/src/services/api.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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, });