From 567e5dc9f0388cff0517856bb1729b69560b2190 Mon Sep 17 00:00:00 2001 From: boseny Date: Mon, 14 Jan 2019 16:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=BA=BF=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E6=97=B6=E4=B8=8D=E5=8F=AF=E4=BB=A5=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E4=BB=BB=E6=84=8F=E7=94=A8=E6=88=B7=E5=90=8D=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mock/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mock/login.js b/src/mock/login.js index 9e84a5510..cd13d44f0 100644 --- a/src/mock/login.js +++ b/src/mock/login.js @@ -18,7 +18,7 @@ const USER_MAP = { export const login = req => { req = JSON.parse(req.body) - return {token: USER_MAP[req.userName].token} + return {token: USER_MAP[req.userName] ? USER_MAP[req.userName].token : 'admin'} } export const getUserInfo = req => {