提交 621299e7 编写于 作者: A afc163 提交者: 偏右

default authorize

上级 631483e6
......@@ -25,7 +25,6 @@ module.exports = [
routes: [
{
path: '/dashboard/analysis',
authority: ['admin'],
name: 'analysis',
component: './Dashboard/Analysis',
},
......@@ -173,6 +172,7 @@ module.exports = [
path: '/account/settings',
name: 'settings',
component: './Account/Settings/Info',
// authority: ['admin'],
routes: [
{
path: '/account/settings',
......
......@@ -3,7 +3,7 @@ import RenderAuthorized from '@/components/Authorized';
import Exception from '@/components/Exception';
import { matchRoutes } from 'react-router-config';
const Authorized = RenderAuthorized('user');
const Authorized = RenderAuthorized(['admin', 'user']);
const noMatch = <Exception type="403" style={{ minHeight: 500, height: '80%' }} />;
export default ({ children, route, location }) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册