Skip to content

Commit 5cb72ac

Browse files
committed
Unauthorized request cannot be redirected bug fix.
Unauthorized request cannot be redirected bug fix.
1 parent 0e1cbef commit 5cb72ac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

reactjs/src/components/Router/router.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const appRouters: any = [
5959
},
6060
{
6161
path: '/tenants',
62-
permission: 'Pages.Tenants',
62+
permission: 'Pages.TenantsXX',
6363
title: 'Tenants',
6464
name: 'tenant',
6565
icon: 'appstore',
@@ -85,7 +85,7 @@ export const appRouters: any = [
8585
component: LoadableComponent(() => import('../../components/Logout')),
8686
},
8787
{
88-
path: '/exception',
88+
path: '/exception?:type',
8989
permission: '',
9090
title: 'exception',
9191
name: 'exception',

reactjs/src/scenes/Exception/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class Exception extends React.Component<any, any> {
2121
{ errorCode: '500', errorImg: error500, errorDescription: 'Sorry, the server is reporting an error' },
2222
];
2323

24-
let params = new URLSearchParams(this.props.location.search);
25-
const test = params.get('type');
26-
let error = exception.find(x => x.errorCode === test);
24+
let params = new URLSearchParams(this.props.match.params.type);
25+
const type = params.get('type');
26+
let error = exception.find(x => x.errorCode === type);
2727

2828
if (error == null) {
2929
error = exception[0];

0 commit comments

Comments
 (0)