File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ import BreadcrumbCustom from '@/components/BreadcrumbCustom';
10
10
import AuthWidget from '@/components/widget/AuthWidget' ;
11
11
12
12
class RouterEnter extends Component {
13
+ componentDidMount ( ) {
14
+ console . log ( 'RouterEnter' ) ;
15
+ }
13
16
render ( ) {
14
17
return (
15
18
< div >
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export default class CRouter extends Component {
38
38
const { auth } = this . props ;
39
39
const { permissions } = auth . data ;
40
40
// const { auth } = store.getState().httpData;
41
- if ( ! permissions || ! permissions . includes ( permission ) ) return < Redirect to = { '404' } push /> ;
41
+ if ( ! permissions || ! permissions . includes ( permission ) ) return < Redirect to = { '404' } /> ;
42
42
return component ;
43
43
} ;
44
44
render ( ) {
You can’t perform that action at this time.
0 commit comments