|
@@ -12,6 +12,7 @@ import { formatMessage } from 'umi-plugin-react/locale';
|
12
|
12
|
import Authorized from '@/utils/Authorized';
|
13
|
13
|
import GlobalHeader from '@/components/GlobalHeader';
|
14
|
14
|
import GlobalFooter from '@/components/GlobalFooter';
|
|
15
|
+import PageTransition from '@/components/PageTransition';
|
15
|
16
|
import { isAntDesignPro, getAuthorityFromRouter } from '@/utils/utils';
|
16
|
17
|
import logo from '../assets/logo.svg';
|
17
|
18
|
const noMatch = (
|
|
@@ -119,9 +120,11 @@ const BasicLayout = (props) => {
|
119
|
120
|
{...props}
|
120
|
121
|
{...settings}
|
121
|
122
|
>
|
122
|
|
- <Authorized authority={authorized.authority} noMatch={noMatch}>
|
123
|
|
- {children}
|
124
|
|
- </Authorized>
|
|
123
|
+ <PageTransition>
|
|
124
|
+ <Authorized authority={authorized.authority} noMatch={noMatch}>
|
|
125
|
+ {children}
|
|
126
|
+ </Authorized>
|
|
127
|
+ </PageTransition>
|
125
|
128
|
</ProLayout>
|
126
|
129
|
);
|
127
|
130
|
};
|