From f3ec5fa9a68fbc05e3766a6b8e37048325808e9e Mon Sep 17 00:00:00 2001 From: Mutrix Date: Thu, 15 Nov 2018 14:47:08 +0800 Subject: [PATCH] bug: fix authorities of root route were not be injected in Authorized component (#2861) --- src/layouts/BasicLayout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 81b2ce88..a28959f0 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -143,9 +143,9 @@ class BasicLayout extends React.PureComponent { getMenuData() { const { - route: { routes }, + route: { routes, path, authority }, } = this.props; - return memoizeOneFormatter(routes); + return memoizeOneFormatter(routes, path, authority); } /** -- GitLab