From b1ef8d423f192dea34b28ae87b2f4f44fe433905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 12 Jul 2018 14:06:19 +0800 Subject: [PATCH] bugfix: Fix trigger page --- config/config.js | 2 +- src/components/GlobalHeader/RightContent.js | 2 +- src/models/login.js | 2 ++ src/pages/404.js | 7 +++++ src/pages/layouts/BasicLayout.js | 32 ++++----------------- src/utils/request.js | 17 ++++------- 6 files changed, 22 insertions(+), 40 deletions(-) create mode 100644 src/pages/404.js diff --git a/config/config.js b/config/config.js index 142710c4..2c46f30e 100644 --- a/config/config.js +++ b/config/config.js @@ -95,7 +95,7 @@ export default { { path: '/exception/403', component: './Exception/403' }, { path: '/exception/404', component: './Exception/404' }, { path: '/exception/500', component: './Exception/500' }, - + { path: '/exception/trigger', component: './Exception/triggerException' }, // account { path: '/account/center', diff --git a/src/components/GlobalHeader/RightContent.js b/src/components/GlobalHeader/RightContent.js index 4373a3d6..bff034a9 100644 --- a/src/components/GlobalHeader/RightContent.js +++ b/src/components/GlobalHeader/RightContent.js @@ -18,7 +18,6 @@ export default class GlobalHeaderRight extends PureComponent { if (newNotice.datetime) { newNotice.datetime = moment(notice.datetime).fromNow(); } - // transform id to item key if (newNotice.id) { newNotice.key = newNotice.id; } @@ -154,6 +153,7 @@ export default class GlobalHeaderRight extends PureComponent { )}