From c6be37ca09517ac4ab52ff6d1617dde73880ddee Mon Sep 17 00:00:00 2001 From: Baorong Li Date: Tue, 11 Sep 2018 17:52:16 +0800 Subject: [PATCH 1/3] fix login page miss --- src/utils/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/config.js b/src/utils/config.js index 441685b..225a972 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -6,6 +6,7 @@ module.exports = { prefix: 'antdAdmin', footerText: 'Ant Design Admin © 2018 zuiidea', logo: '/public/logo.svg', + openPages: ['/login'], apiPrefix: '/api/v1', APIV1, APIV2, From 2522b971f1feb92fbe05bdcd629949947086f2ef Mon Sep 17 00:00:00 2001 From: Baorong Li Date: Tue, 11 Sep 2018 17:52:44 +0800 Subject: [PATCH 2/3] clean README.md --- README.md | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/README.md b/README.md index 02ce6cb..d121fee 100644 --- a/README.md +++ b/README.md @@ -37,35 +37,6 @@ * 更新`antd`至`3.0.3`,以及其它主要库,并解决升级带来的兼容问题。 * 尽可能的保持`antd`的设计语言。 -### 4.3.7 - -`2017-10-30` - -* 更新`chart`,新增[ECharts](https://github.com/ecomfe/echarts),[highCharts](https://github.com/highcharts/highcharts),[Recharts](https://github.com/recharts/recharts)演示。 - -### 4.3.5 - -`2017-09-04` - -* 更新[dva](https://github.com/dvajs/dva)至`2.0.1`,感谢[@yangbin1994](https://github.com/yangbin1994)的[PR](https://github.com/zuiidea/antd-admin/pull/567)。 - -### 4.3.4 - -`2017-09-04` - -* 更新[roadhog](https://github.com/sorrycc/roadhog)至`1.2.1`,修复闪屏问题。 -* 修复 build css 未压缩[#529](https://github.com/zuiidea/antd-admin/issues/529),classname 未 Hash[#477](https://github.com/zuiidea/antd-admin/issues/477)。 -* 更新登录成功使用 router 跳转[#479](https://github.com/zuiidea/antd-admin/issues/479)。 - -### 4.3.0 - -`2017-07-30` - -* 更新[roadhog](https://github.com/sorrycc/roadhog)至`1.0.0-beta.7`,得益于`webpack@3.4`,编译速度不减。 -* 基于使用 roadhog 的 dll 插件,开发时编译耗时减半。 -* 新增打包时按项目版本号生成文件目录。[#449](https://github.com/zuiidea/antd-admin/issues/449) -* 更新`eslint`,并适当修改了`.eslintrc`。 - [More Change Log](https://github.com/zuiidea/antd-admin/wiki/Change-Log) ## 开发构建 From b3d5d115391740178218fc5a73be465e8271f684 Mon Sep 17 00:00:00 2001 From: Baorong Li Date: Tue, 11 Sep 2018 18:09:06 +0800 Subject: [PATCH 3/3] try add a simple test --- src/pages/request/index.js | 2 +- src/pages/request/index.test.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/pages/request/index.test.js diff --git a/src/pages/request/index.js b/src/pages/request/index.js index 12e82ad..2e0118d 100644 --- a/src/pages/request/index.js +++ b/src/pages/request/index.js @@ -7,7 +7,7 @@ import styles from './index.less' const { api } = config const { dashboard, users, userLogin, user, v1test, v2test } = api -const requestOptions = [ +export const requestOptions = [ { url: user.replace('/:id', ''), desc: 'intercept request by mock.js', diff --git a/src/pages/request/index.test.js b/src/pages/request/index.test.js new file mode 100644 index 0000000..9d8387f --- /dev/null +++ b/src/pages/request/index.test.js @@ -0,0 +1,7 @@ +import { requestOptions } from './index' + +describe('test requestOptions', () => { + it('get right desc', () => { + expect(requestOptions[1].desc).toEqual('intercept request by mock.js') + }) +})