From 69fbb4742e576d41e8ace771a305b6eda7884943 Mon Sep 17 00:00:00 2001 From: ZealotuS Date: Sat, 15 Apr 2017 18:13:56 +0800 Subject: [PATCH 1/4] fix mock error caused by invalid username --- src/mock/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mock/users.js b/src/mock/users.js index a2155b9..a12f217 100644 --- a/src/mock/users.js +++ b/src/mock/users.js @@ -61,7 +61,7 @@ module.exports = { const { username, password } = req.body const user = adminUsers.filter((item) => item.username === username) - if (user && user[0].password === password) { + if (user[0] && user[0].password === password) { const now = new Date() now.setDate(now.getDate() + 1) res.cookie('token', JSON.stringify({ id: user[0].id, deadline: now.getTime() }), { From a42e749c220883947b4dbc1a9c66c19585a18511 Mon Sep 17 00:00:00 2001 From: zuiidea Date: Wed, 19 Apr 2017 19:27:23 +0800 Subject: [PATCH 2/4] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 9ec5735..da50203 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ 演示地址 + ## 特性 - 基于[react](https://github.com/facebook/react),[ant-design](https://github.com/ant-design/ant-design),[dva](https://github.com/dvajs/dva),[Mock](https://github.com/nuysoft/Mock) 企业级后台管理系统最佳实践 @@ -19,6 +20,13 @@ - 基于[dva](https://github.com/dvajs/dva)动态加载 Model 和路由,按需加载 - 浅度响应式设计 +## 注意 +如果使用到roadhog,且出现接口404 +- 保证`package.json`里没有`roadhog` +- 删除`node_modules` +- `npm i` +- `npm i roadhog@0.6.0-beta.3 -g` + ## 更新日志 ### 4.1 From 53b8ee6e63d27d432049452b657ce94b53e4ffd1 Mon Sep 17 00:00:00 2001 From: zuiidea Date: Fri, 21 Apr 2017 11:06:23 +0800 Subject: [PATCH 3/4] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index da50203..c0d77c6 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,12 @@ ## 更新日志 +### 4.2 + +`2017-04-21` + +-   重写Menu,Bread组件及配置文件,[说明](https://github.com/zuiidea/antd-admin/wiki/%E8%8F%9C%E5%8D%95%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6) + ### 4.1 `2017-04-14` From a4922c75419685577d23d9e9f1ea43942c226c63 Mon Sep 17 00:00:00 2001 From: HeChengjun Date: Mon, 24 Apr 2017 17:17:10 +0800 Subject: [PATCH 4/4] menu.js line 96 : lineChart -> barChart --- src/utils/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/menu.js b/src/utils/menu.js index e25cfac..afd7ce9 100644 --- a/src/utils/menu.js +++ b/src/utils/menu.js @@ -93,7 +93,7 @@ module.exports = [ mpid: 5, name: 'BarChart', icon: 'bar-chart', - router: '/chart/lineChart', + router: '/chart/barChart', }, { id: 53,